Quantcast
Viewing all articles
Browse latest Browse all 8068

iOs Module UINavigationController callback

Hello everybody, i'm trying to code a titanium module for iOs.

I need to have 2 windows opened via a modal navigationController. in the last window, i want to close the modal window and fire an event with some objects.

the way i open the modal window:

MyListGroupsViewController *myListCollectionViewController = [[MyListGroupsViewController alloc] initWithCollectionViewLayout:layout ];
 
    UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:myListCollectionViewController];
 
    [[TiApp app] showModalController:navigationController animated:YES];
-when i click on a button on the last window, i want to close the navigation controller and call a method returnToview in the module class, or fire an event
- (void)chooseView:(UIGestureRecognizer *)gesture {
    [self.presentingViewController  performSelector:@selector(returnToView:) ];
    [self.presentingViewController dismissViewControllerAnimated:YES completion:nil];
}
The code works with Xcode but crashed in titanium.

thx


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>