- 博客(4)
- 收藏
- 关注
原创 iOS 代理的简单实用
本文属于小白初创,如有什么问题,请各路大神留下发财的小手多多指点迷津,在这里不胜感激! 话不多说,直接上代码 我们要明确确定谁是代理的那个人。 例如:A是老板,B是员工,A让B去给我做一个事情,那么这个B就是属于代理的对象 首先是写一个协议: 以oneViewController和twoViewController区分 在twoViewController.h里面定义协议和属性 //...
2019-09-20 09:46:34
100
原创 iOS 小白的SDAutoLayout使用方法
// 屏幕的宽高宏定义 #define DEVICE_HEIGHT [UIScreen mainScreen].bounds.size.height #define DEVICE_WIDTH [UIScreen mainScreen].bounds.size.width @interface ViewController () @end @implementation ViewCo...
2019-08-30 10:13:21
133
原创 iOS NSMutableAttributedString简单实用,自学
自学文章,不喜勿喷,请各路大神指教 -(UILabel *)Lecturers_business_cardLab{ if (!_Lecturers_business_cardLab) { _Lecturers_business_cardLab = [[UILabel alloc]init]; [scroll addSubview:self.Le...
2019-08-23 09:26:15
137
1
原创 iOS Masonry学习
CGFloat padding = 20; UIView *greenView = UIView.new; greenView.backgroundColor = [UIColor greenColor]; greenView.layer.borderWidth = 2; greenView.layer.borderColor = UIColor...
2019-08-19 17:00:02
95
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人