I have created a TabViewController
There is a view with the table and the image with a view and Some buttons
Now I want that when I press the button to see each other to see each other, then it should be selected. And when I press two buttons ... the line two should be selected from the second view ..
Can anyone tell me logically or how can I do it with coding ??
Thank you.
If you have a second view reference - Answer by reply @Patan
If not, you can use the notification like this:
In view 'A':
[[NSNotificationCenter defaultCenter] PostNotificationName: @ "Selectroll" object: [NSNumber numbers: line number]]]; See in B: [[NSNotificationCenter defaultCenter] addObserver: auto selector: @selector (selectRow :) name: @ "select row" object: zero]; - (zero) Select Line: (NSNotification *) N {NSNumber * row = [n Object]; NSIndexPath * indexPath = [NSIndexPath indexPathForRow: [line intValue] in attribute: 0]; [Select ItemsTableViewRockoutindPath: IndexPath Animated: No Scrollposition: UITWebScrollPotiObotum]; }
Comments
Post a Comment