Hai Guys, I have been coding so many hours to finish 4 apps this week. And now I am really tired, and can't figure out a normal solution to my problem..
Let's say I have RootViewController, and on a button click, I push a special library (which is a UIViewController.) onto the navigation stack. In there, I have a hard coded button on my nav bar, which has to be able to jump to the second slideshow. (let me know if i'm not explaining right.)
So like this.
And on second page I need to think of a block of code, which will allow me to switch to let's say IBAction, loadPage2 or something similair.
I was thinking of creating a pointer of the RootViewController, assign the self.parentViewController, but cast it as a (RootViewController*) but that gives back a UIViewController, and not the specific RootView.
Can't wait to hear back. ciao.
Let's say I have RootViewController, and on a button click, I push a special library (which is a UIViewController.) onto the navigation stack. In there, I have a hard coded button on my nav bar, which has to be able to jump to the second slideshow. (let me know if i'm not explaining right.)
So like this.
Code:
- (IBAction) loadPage1 {
// Browser
NSMutableArray *photos = [[NSMutableArray alloc] init];
[photos addObject:[MWPhoto photoWithFilePath:[[NSBundle mainBundle] pathForResource:@"Chapter1-1" ofType:@"png"]]];
// Create browser
MWPhotoBrowser *browser = [[MWPhotoBrowser alloc] initWithPhotos:photos];
//[browser setInitialPageIndex:0]; // Can be changed if desired
[self.navigationController pushViewController:browser animated:YES];
[browser release];
[photos release];
}
And on second page I need to think of a block of code, which will allow me to switch to let's say IBAction, loadPage2 or something similair.
I was thinking of creating a pointer of the RootViewController, assign the self.parentViewController, but cast it as a (RootViewController*) but that gives back a UIViewController, and not the specific RootView.
Can't wait to hear back. ciao.