« first day (65 days earlier)    last day (14 days later) » 

Avi
8:58 AM
hey mahesh
r u there?
 
hi
how r u man
kaisey
@Avi
 
Avi
fine man
what abt u?
 
Avi
superb
whats going on?
 
chal ra
 
Avi
9:06 AM
get some good work?
 
ha
this is good only man
 
Avi
ok nice
 
payment methods
 
Avi
tell me what was the issue?
 
In menu view controller i am created protocol
when menu inside tableview is there
i cliked first index
then i am calling protocol
if we can navigate through push we get delegate object
but i am navigating through swrevealview
we wont get object na
then protocol not working
that method not calling
that is the issue
 
Avi
9:10 AM
wait
 
understand
ok
 
Avi
aglive tester is ther
 
Avi
which controller's delegate u want to call?
 
menu view
in menu view i am created protocol
that method i am implemented in home view
 
Avi
9:18 AM
you will get object in -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
 
no segues
xibs
 
Avi
by [segue destinationViewController]
ok ok
 
xcode 5
 
Avi
oh man!
wait
 
ok
home view to we are navigating to menu using swrevealview
not push or segue
 
Avi
9:21 AM
you ar creating viewcontroller's object . and setting it to revealcontroller's FrontViewController
m i right?
 
ha
UIImage *background = [UIImage imageNamed:@"details.png"];
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[button addTarget:revealController action:@selector(rightRevealToggle:) forControlEvents:UIControlEventTouchUpInside];
[button setBackgroundImage:background forState:UIControlStateNormal];
button.frame = CGRectMake(0,0,50,25);

UIBarButtonItem *revealButtonItem = [[UIBarButtonItem alloc] initWithCustomView:button];

self.navigationItem.rightBarButtonItem = revealButtonItem;
through this code i am navigating
to menuview controller
in menu viewcontroller i am creating protocol
that protocol method i am implenmented in home view
when inside menu click action i am calling protocol method
problem is delagete nil is coming
because we are navigating through push
we are navigating through above view controller
thats why delefgate object nil is coming
@Avi
 
Avi
is delegate necessory?
 
ha
i know
neceery
 
Avi
ok
 
using defaults also
we can do
but here everthing protocals using
standards
 
Avi
9:29 AM
but everytime viewcontroller will be initialized whenever you will tap on menu item
so you can not get delegate
 
no solution
 
Avi
just tell me what u want to pass to viewcontroller?
 
just nothing which cell u r selected just information
 
Avi
create property into viewcontroller's interface
 
Avi
9:31 AM
and set the values
simple
this is right way
 
means instance variable
 
Avi
no property
 
in which view controller
 
Avi
in which you want to pass the info
 
menu to home
pop to home
 
Avi
9:33 AM
yes
 
when menu open click on menu option then navigate through home
 
Avi
when you any menu item will be selected, you are creating object of viewcontroller right? in didselectItem of tableview
 
ok got it
 
Avi
at that time you have to set the property of that viewcontroller
 
ok fine
but delegate wont possible na
 
Avi
9:37 AM
no
 
ok i will mage
fine
 
Avi
ok
 
passing variable i know
i am thinking delegate
no worries
ok
 
Avi
ya simply how we are sending normally in navigation
 

« first day (65 days earlier)    last day (14 days later) »