首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏娱乐心理测试

    关于 循环引用问题

    (@"发生内存泄漏的控制器------->%@",strongself); }); } } (3).给UINavigationController添加一个分类 在 load方法中实现popViewControllerAnimated static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ [self swizzleSEL:@selector(popViewControllerAnimated :) withSEL:@selector(dt_popViewControllerAnimated:)]; }); } -(UIViewController*)dt_popViewControllerAnimated :(BOOL)animated{ UIViewController *popVC = [self dt_popViewControllerAnimated:animated]; objc_setAssociatedObject

    3.9K20发布于 2019-12-20
  • 来自专栏万岳科技那些事儿

    在线教育平台开发中,教学白板是如何实现的

    UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) { [self.navigationController popViewControllerAnimated UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) { [self.navigationController popViewControllerAnimated

    1.5K20发布于 2020-06-04
  • 来自专栏陈满iOS

    iOS-JavaScript交互方案:网页监听APP返回键(goback)+APP监听网页返回键(JS调用OC对象方法)

    ; } if(shouldPop) { dispatch_async(dispatch_get_main_queue(), ^{ [self popViewControllerAnimated dispatch_async(dispatch_get_main_queue(), ^{ //APP返回上级页面动作 [self.navigationController popViewControllerAnimated

    4.7K30发布于 2018-09-10
  • 来自专栏iOS逆向与安全

    iOS监听H5页面goBack返回事件 & 网页监听APP返回键 (NavigationBackItemInjection)

    [self.webView goBack]:[self.navigationController popViewControllerAnimated:YES]; } return YES self.webView.canGoBack==YES) { [self.webView goBack]; }else{ [self.navigationController popViewControllerAnimated

    6.7K21发布于 2021-07-05
  • 来自专栏移动端周边技术扩展

    让push跳转动画像modal跳转动画那样效果(从下往上推上来)

    self.navigationController.view.layer addAnimation:transition forKey:kCATransition]; [self.navigationController popViewControllerAnimated

    1.5K50发布于 2018-06-14
  • 来自专栏c#开发者

    Iphone 视图跳转方法总结

    pushViewController:subTableViewController animated:YES];   描述:通过 NSNavigationBar 进行跳转   [self.navigationController popViewControllerAnimated

    75970发布于 2018-04-12
  • 来自专栏css小迷妹

    iOS判断字符串是否为合法邮箱地址

    { [self.delegate saveEmail:_mailField.text]; [self.navigationController popViewControllerAnimated

    98220发布于 2021-10-29
  • 来自专栏日常技术分享

    iOS 路由改进

    IBAction)blockAction:(UIButton *)sender { if(self.backBlock){ [self.navigationController popViewControllerAnimated self.backBlock(@{@"value":@"A_Module_Page1_Block"}); }else{ [self.navigationController popViewControllerAnimated

    78630发布于 2021-04-26
  • 来自专栏移动端周边技术扩展

    移动端开发人员调试H5

    %@", error); }]; } [self.webView goBack]; } else { [self.navigationController popViewControllerAnimated

    69930发布于 2018-06-13
  • 来自专栏mukekeheart的iOS之旅

    iOS学习——页面的传值方式iOS----KVC和KVO 详解

    }]; 53 } 54 55 - (void) btnClicked:(UIButton *)btn { 56 57 [self.navigationController popViewControllerAnimated transferString:)]) { [self.delegate transferString:@"子页面回传的数据"]; } [self.navigationController popViewControllerAnimated self.transDataBlock) { self.transDataBlock(@"子页面回传的数据"); } [self.navigationController popViewControllerAnimated sender.userInfo[@"content"]; } - (void) btnClicked:(UIButton *)btn { [self.navigationController popViewControllerAnimated btnClicked:(UIButton *)btn { self.content = @"子页面回传数据";//修改属性的内容 [self.navigationController popViewControllerAnimated

    2.2K20发布于 2019-09-29
  • 来自专栏码客

    iOS 页面跳转的方式

    popViewControllerAnimated(true) 这种方式和用storyboard中的拖线选push是一样的原理 //先定义segue的ID self.performSegueWithIdentifier

    2.2K20发布于 2019-10-22
  • 来自专栏全栈程序员必看

    使用block实现两个页面之间的传统价值观

    _doTransferMsg(@”hello there”); _doTransferMsg = nil; } [self.navigationController popViewControllerAnimated

    49530编辑于 2022-07-06
  • 来自专栏MapleYe

    【iOS】今日头条的转场动画设置+手势控制

    locationInView:[UIApplication sharedApplication].keyWindow].y; [self.navigationController popViewControllerAnimated cancelInteractiveTransition]; break; } } 要注意的是,在pan手势触发的时候,需要先调用[self.navigationController popViewControllerAnimated

    2.1K31发布于 2020-03-31
  • 来自专栏月亮与二进制

    iOS页面间传递消息之Delegate

    显示方块 - (void)showSquare { [self.delegate showTheSquare];// 调用委托方法 [self.navigationController popViewControllerAnimated (void)dismissSquare { [self.delegate dismissTheSquare];// 调用委托方法 [self.navigationController popViewControllerAnimated

    94130发布于 2021-11-23
  • 来自专栏王大锤

    iOS8 自定义navigationbar 以及 UIBarButtonItem 边距问题

    item animated:NO]; [self.view addSubview:bar]; } - (void)back{ [self.navigationController popViewControllerAnimated

    2.2K70发布于 2018-05-17
  • 来自专栏学海无涯

    iOS开发之利用Block逆向传值

    将自己的值传出去,完成传值 weakself.returnValueBlock(inputString); } [self.navigationController popViewControllerAnimated

    96670发布于 2018-05-03
  • 来自专栏iOS开发干货分享

    iOS中WKWebView交互使用总结

    self.webView.backForwardList currentItem].title isEqualToString:@"首页"]) { [self.navigationController popViewControllerAnimated [self.webView goBack]; } }else{ [self.navigationController popViewControllerAnimated

    3.3K40发布于 2019-06-14
  • 来自专栏KyXu

    【iOS 开发】Controller 之间使用代理传值

    popViewControllerAnimated(true) } } 相比之前的方法,我们获得的额外的好处是:假如我们传递的不只是字符串,而是大量的信息,比如十个不同类型的值,使用代理传值依然只需要实现一个方法

    1.4K20发布于 2019-04-11
  • 来自专栏编程之旅

    iOS开发——Block在实际项目中的传值

    self.selectedRoomBlock(self.selectedRoom); } [self.navigationController popViewControllerAnimated

    1.2K60发布于 2018-08-30
  • 来自专栏我杨某人的青春满是悔恨

    Swift纯代码页面传值

    popViewControllerAnimated(true) } } //......

    2.6K20发布于 2018-09-10
领券