随笔分类 -  UIStoryBoard

摘要:1. pod 443 source 'https://github.com/CocoaPods/Specs.git' source 'https://github.com/aliyun/aliyun-specs.git' 阅读全文
posted @ 2021-05-20 22:03 逆欢 阅读(946) 评论(0) 推荐(0) 编辑
摘要:通过代理 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) 编辑
摘要:scenedelegate.m #import "SceneDelegate.h" #import "VCFirst.h" #import "VCSecond.h" #import "VCThird.h" @interface SceneDelegate () @end @implementatio 阅读全文
posted @ 2020-09-28 22:31 逆欢 阅读(133) 评论(0) 推荐(0) 编辑
摘要:secendelegate.m #import "SceneDelegate.h" #import "VCRoot.h" @interface SceneDelegate () @end @implementation SceneDelegate - (void)scene:(UIScene *)s 阅读全文
posted @ 2020-09-28 21:40 逆欢 阅读(170) 评论(0) 推荐(0) 编辑
摘要:scenedelegate.m #import "SceneDelegate.h" #import "VCRoot.h" @interface SceneDelegate () @end @implementation SceneDelegate - (void)scene:(UIScene *)s 阅读全文
posted @ 2020-09-28 21:36 逆欢 阅读(174) 评论(0) 推荐(0) 编辑
摘要:scenedelegate.m #import "SceneDelegate.h" #import "VCRoot.h" @interface SceneDelegate () @end @implementation SceneDelegate - (void)scene:(UIScene *)s 阅读全文
posted @ 2020-09-26 22:05 逆欢 阅读(247) 评论(0) 推荐(0) 编辑
摘要:VCRoot.h #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface VCRoot : UIViewController //XIB创建UILabel属性 //IBOutlet属性是在XIB中创建的 @property (weak, 阅读全文
posted @ 2020-09-22 23:00 逆欢 阅读(114) 评论(0) 推荐(0) 编辑
摘要:sceneDelegate.m #import "ViewController.h" #import "SceneDelegate.h" #import "VCRoot.h" @interface SceneDelegate () @end @implementation SceneDelegate 阅读全文
posted @ 2020-09-22 22:16 逆欢 阅读(106) 评论(0) 推荐(0) 编辑
摘要:ViewController.h #import <UIKit/UIKit.h> @interface ViewController : UIViewController { //定义一个缩放手势 用来对视图可以进行放大缩小 //Pinch 捏合手势 UIPinchGestureRecognizer 阅读全文
posted @ 2020-09-19 22:34 逆欢 阅读(137) 评论(0) 推荐(0) 编辑
摘要:viewcontroller.h #import <UIKit/UIKit.h> @interface ViewController : UIViewController { // 定义试图对象 UIImageView* _imageView; } @end viewcontroller.m #im 阅读全文
posted @ 2020-09-19 21:20 逆欢 阅读(143) 评论(0) 推荐(0) 编辑
摘要:ViewController.h #import <UIKit/UIKit.h> @interface ViewController : UIViewController { CGPoint _mPtLast; } @end ViewController.m #import "ViewControl 阅读全文
posted @ 2020-09-17 22:18 逆欢 阅读(132) 评论(0) 推荐(0) 编辑
摘要:viewcontroller.m #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad] 阅读全文
posted @ 2020-09-16 23:09 逆欢 阅读(150) 评论(0) 推荐(0) 编辑
摘要:ViewController.h #import <UIKit/UIKit.h> @interface ViewController : UIViewController { //登录页面的组成 //登陆名提示 输入框 //密码提示 //登录按钮 //注册按钮 //作为私有 UILabel* _lb 阅读全文
posted @ 2020-09-16 21:47 逆欢 阅读(170) 评论(0) 推荐(0) 编辑
摘要:viewController.h #import <UIKit/UIKit.h> @interface ViewController : UIViewController<UITextFieldDelegate> { //定一个textField //文本输入区域 //例如 用户名 密码需要输入文本 阅读全文
posted @ 2020-09-14 22:36 逆欢 阅读(154) 评论(0) 推荐(0) 编辑
摘要:ViewController.h #import <UIKit/UIKit.h> @interface ViewController : UIViewController { //定义步进器对象 //按照一定的数值来调整某个数值 UIStepper* _stepper; //分栏控制器 UISegm 阅读全文
posted @ 2020-09-13 23:59 逆欢 阅读(190) 评论(0) 推荐(0) 编辑
摘要:viewcontroller.h @interface ViewController : UIViewController { //进度条对象 //一般用来表示下载和视频播放的进度 UIProgressView* _progressView; //滑动条的定义 //一般用来进行调整音乐音量的 UIS 阅读全文
posted @ 2020-09-13 23:22 逆欢 阅读(172) 评论(0) 推荐(0) 编辑
摘要:ViewController.h #import <UIKit/UIKit.h> @interface ViewController : UIViewController { //定义一个开关控件 //可以进行状态的改变 //开 关 两种状态可以切换 //所有UIKIts框架库中的控件均已UI开头 阅读全文
posted @ 2020-09-12 23:27 逆欢 阅读(89) 评论(0) 推荐(0) 编辑
摘要:ViewController.h #import <UIKit/UIKit.h> @interface ViewController : UIViewController { //定义一个定时器对象 //可以在每个固定时间发送消息 //调用此消息来调用相应的时间函数 //通过此函数可以在固定时间段来 阅读全文
posted @ 2020-09-12 22:55 逆欢 阅读(185) 评论(0) 推荐(0) 编辑

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