Hi,
I need to display feeds based on the button,
I have two buttons called next and previous.
if i click next button , i need to display some feeds.
if i click previous button , i need to display some feeds.
I wrote the code in the following way
In main class , i wrote the following code
- (IBAction) nextbuttonid)sender
{
button= @"next";
RootviewController *vController = [[RootviewController alloc]
initWithNibName"Newsmenu" bundle:[NSBundle mainBundle]];
......
.....
}
- (IBAction) previousbuttonid)sender
{
button =@"previous"
RootviewController *vController = [[RootviewController alloc]
initWithNibName"Newsmenu" bundle:[NSBundle mainBundle]];
......
.....
}
..........end............
In RootviewController i wrote the main operations,so i need to check the variable "button"
if i call the "button" in the RootviewController class it displays null value.
code:
1)What is the way to access the "button" value in RootviewController class.
I need to display feeds based on the button,
I have two buttons called next and previous.
if i click next button , i need to display some feeds.
if i click previous button , i need to display some feeds.
I wrote the code in the following way
In main class , i wrote the following code
- (IBAction) nextbuttonid)sender
{
button= @"next";
RootviewController *vController = [[RootviewController alloc]
initWithNibName"Newsmenu" bundle:[NSBundle mainBundle]];
......
.....
}
- (IBAction) previousbuttonid)sender
{
button =@"previous"
RootviewController *vController = [[RootviewController alloc]
initWithNibName"Newsmenu" bundle:[NSBundle mainBundle]];
......
.....
}
..........end............
In RootviewController i wrote the main operations,so i need to check the variable "button"
if i call the "button" in the RootviewController class it displays null value.
code:
HTML:
result=rootviewcontroller.button
1)What is the way to access the "button" value in RootviewController class.