forum

Home / DeveloperSection / Forums / Accessing sub-view selection of UITableView in iOS.

Accessing sub-view selection of UITableView in iOS.

Anonymous User 1414 07-Jan-2016
I have created a view controller in iPhone app, which has a button. On button click we open a UITableViewController, on this table view we populate data using a mutable array and that array has several NSDictionary objects.
#import <UIKit/UIKit.h>
@interface MyTableViewController:UITableViewController
{
NSMutableArray *arrayList;
NSIndexPath *last;
IBOutlet UITableView *tableView;
NSObject *selectedItem;
}
@property(nonatomic, retain) NSArray *arrayList;
@property(nonatomic, retain) UITableView *tableView;
@property(nonatomic, retain) NSObject *selectedItem;

@end
this is the Implementation of MyTableViewController.m
#import "MyTableViewController.h"
@implementation MyTableViewController

@synthesize arrayList, tableView, selectedItem;
Now, I have no problem to open that table view on button click, but I can not figure-out what are the properties of the selected item.

Updated on 07-Jan-2016
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By