uiimagepickercontroller选取完照片后,为什么会自动跳到根页面
1个回答
2015-12-30 · 知道合伙人数码行家
huanglenzhi
知道合伙人数码行家
向TA提问 私信TA
知道合伙人数码行家
采纳数:117538
获赞数:517190
长期从事计算机组装,维护,网络组建及管理。对计算机硬件、操作系统安装、典型网络设备具有详细认知。
向TA提问 私信TA
关注
展开全部
自己定义一个导航控制器变量myNavitionController
在跳转的时候,把navigationController保存到这个变量来。
-(void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
NSLog(@"dddd %@", navigationController.viewControllers);
self.myNavitionController = navigationController;
}
然后在点击图片的时候
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
NSLog(@"灌灌灌灌%@", self.myNavitionController.viewControllers);
[self.myNavitionController pushViewController:filtersViewController animated:NO];
}
ok,完美
在跳转的时候,把navigationController保存到这个变量来。
-(void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
NSLog(@"dddd %@", navigationController.viewControllers);
self.myNavitionController = navigationController;
}
然后在点击图片的时候
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
NSLog(@"灌灌灌灌%@", self.myNavitionController.viewControllers);
[self.myNavitionController pushViewController:filtersViewController animated:NO];
}
ok,完美
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询