10 2020 档案

摘要:通过代理 delegate VCSecond。h #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN //定义一个协议 视图控制器二协议 @protocol VCSecondDelegate <NSObject> //定义一个协议函数,改变背景颜色 -(v 阅读全文
posted @ 2020-10-14 22:50 逆欢 阅读(105) 评论(0) 推荐(0) 编辑
摘要:ViewController.m #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad] 阅读全文
posted @ 2020-10-09 22:33 逆欢 阅读(83) 评论(0) 推荐(0) 编辑
摘要:ViewController.h #import <UIKit/UIKit.h> @interface ViewController : UIViewController < //普通协议代理,处理视图选取普通事件协议功能 UIPickerViewDelegate, //数据代理协议 获取数据代理函 阅读全文
posted @ 2020-10-09 21:48 逆欢 阅读(117) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示