ios - Text Field on Top of Button - iPhone -
So I'm trying to understand the ideas in xCode for my registration page - something like this: < P> At any rate, I can not understand how he is using to achieve this performance. Does it look like a TextField at the top of a button? If so, then I can never find the text field to sit on the top, it always goes behind the button, thus making it invisible.
Any suggestions or suggestions?
This button does not have a text field. Actually it's a text box inside a table view. You must do the following:
- Take a table view on the Nibb
- Create the outlet and set the delegate and the data source.
- Then add the following code to your .m file.
This is a
number of rows in the table view before this set.
- (UITableViewCell *) Table Views: (UITableView *) Table cellForRowAtIndexPath: (NSIndexPath *) indexPath {UITableViewCell * cell = [Table dequeueReusableCellWithIdentifier: @ "cell"]; If (cell == blue) cell = [[[UTTEWview alloc] initWithStyle: UITableViewCellStyleDefault reuseIdentifier: @ "cell"] autorelease]; @ "Seventh", @ "Seventh", @ "eighth", @ "#", ", @" Nineteenth ", @" tenth ", zeros] objectatted index: indexpath.ro]; if (indexPath.row% 2) {UITextField * textField = [[UITextField alloc] initWithFrame: CGRectMake (0, 0, 200, 21)]; TextField.placeholder = @ "Enter text"; TextField.text = [Inputtaks Objektaetindaks: Indekspathkro / 2]; TextField.tag = indexPath.row / 2; TextField.delegate = self; Cell.accessoryView = textField; [Tekstfild release];} and sales. Aksesriwu = null; Cell.selectionStyle = UITableViewCellSelectionStyleNone; return cell;} < / Pre>
Or you can view this link
Comments
Post a Comment