ios 学习笔记(三)

来源:互联网 发布:mac怎么关闭应用程序 编辑:程序博客网 时间:2024/04/30 08:34

1:界面跳转传值,直接在跳转前给controller里的对象传值。

 CouponDetailViewController *couponDetailViewController = (CouponDetailViewController *)[self.storyboard instantiateViewController<span style="white-space:pre"></span>WithIdentifier:@"CouponDetailViewController"]; couponDetailViewController.coupon=rsp.coupon; [self.navigationController pushViewController:couponDetailViewController animated:YES];

2:界面类onActivityResult传值:使用delegate,类似android接口回调机制。

参考:http://blog.csdn.net/ryantang03/article/details/7915045

3:

0 0