last day (29 days later) » 

5:44 PM
1
A: cell.accessoryType = UITableViewCellAccessoryDetailButton WHAT IS NEXT?

JacobFirst, welcome to the iOS developing community! In order to do this, I would use a segue to a detail view that you can design. When you select a row in your table using didSelectRowAtIndexPath, you would set an @property to the object in your array that was selected: self.selectedObject = self.t...

 
Thank you for your input.
 
@georgeOfTheJungle were you able to figure it out?
 
Thank you for the follow up. The answer is partially. Managed the segue. Now trying to understand how to pass info from selected row to the next very simple screen with only one text field. One step at a time. I'll get there slowly but surely. Any other hint(s) is more than welcome. Thanks.
 
@georgeOfTheJungle I would be glad to help. What seems to be the problem with passing info?
@georgeOfTheJungle In your prepareForSegue method you are checking to see if its equal to "DetailedInfo" but you are calling [self performSegueWithIdentifier:@"appsDetailedInfo" sender:self]; so make sure they are the same ;)
 
UPDATE: Thanks for your help. My code: - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath{ UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; str = cell.textLabel.text; // str is global [self performSegueWithIdentifier:@"Info" sender:self]; } - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {if ([[segue identifier] isEqualToString:@"Info"]) { itemViewController *detailViewController = [segue destinationViewController]; detailViewController.TextField = str; } } Text field of next screen is blank.
 
5:44 PM
@georgeOfTheJungle try detailViewController.TextField.text = str;
 
Did as suggested and get error: Property 'TextField' not found on object of type 'itemViewController *'.
 
Do you have a TextField property on that new view controller?
 
Attribute inspector reports: Text Field text plain color default font...placeholder stuff etc...
 
Can you log the text before you send it?
Ok good...can you post code for the other view? Is the field connected using an iboutlet? Are you sure its named correctly?
 
My code: - (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. NSLog(@"%@", self.textField.text); } Nothing appears. Debug info: _item=nil, _itemName=nil, <UITextField: 0x109388540; frame = (20 154; 280 30); text = ''; clipsToBounds = YES; opaque = NO; autoresize = RM+BM; layer = <CALayer: 0x11650f230>>
 
5:44 PM
You keep switching between TextField and textField. Everything is case sensitive so make sure it's consistent everywhere.
 
Sorry about that. It is now textField everywhere. Connection inspector is greyed out and can't activate any radio button. All are empty. As for IBOutlet here is the code:
@interface itemViewController ()
@property (weak, nonatomic) IBOutlet UITextField *textField;
@end
 
So the segue is still working but you still can't pass data?
 
 
2 hours later…
7:27 PM
Yes, I guess so. When I click on the i button the next screen is displayed but no data is transferred!
 

  last day (29 days later) »