// 监听slider滑动 - (IBAction)valueChnage:(UISlider *)sender; @property (weak, nonatomic) IBOutlet NJView *circleView; @end @implementation NJViewControll... ...
分类:
移动开发 时间:
2017-03-21 23:01:39
阅读次数:
1025
UILabel属性大全UIButton属性大全UIView属性大全UIImage属性大全UIImageView属性大全UITextField属性大全UIScrollView属性大全UITableView属性大全UIViewController属性大全UIAlertController属性大全UISe ...
分类:
其他好文 时间:
2017-03-21 18:20:51
阅读次数:
170
iOS网络层设计 1、网络层和业务层的对接设计 使用哪种交互模式来和业务层对接 : 使用Delegate为主,目的是为了(1)减少代码的分散度(2)减少业务层和网络层的耦合,网络层对于业务层应该是抽象的,隐藏了实现细节的 (3)只采用一种是限制了灵活性,方便进行维护 在网络层不要滥用block :( ...
分类:
移动开发 时间:
2017-03-20 00:15:37
阅读次数:
323
+ (UIImage *)imageWithColor:(UIColor *)color { CGRect rect = CGRectMake(0, 0, 1, 1); UIGraphicsBeginImageContext(rect.size); CGContextRef context = UI ...
分类:
其他好文 时间:
2017-03-13 12:44:32
阅读次数:
134
+ (UIImage *)imageNamed:(NSString *)name ofBundle:(NSString *)bundleName { static NSMutableDictionary *loadedObjectDict = nil; if (!loadedObjectDict) ...
分类:
移动开发 时间:
2017-03-11 11:44:43
阅读次数:
1135
一、 今日做项目遇到图片复用问题,返回cell高度相同,由于网络不好出现图片复用,发现问题Cell 图片加载方法如下:- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder { [selfsd_s... ...
分类:
其他好文 时间:
2017-03-10 12:49:44
阅读次数:
366
描述下场景:button在不同的状态显示不同的title样式 比如normal 下 font是[UIFont systemFontOfSize:18.0f weight:UIFontWeightRegular] 颜色是 [UIColor blackColor] select 下 font 是[UIF ...
分类:
移动开发 时间:
2017-03-05 11:36:18
阅读次数:
599
//1.添加按钮 UIButton *nameView=[UIButton buttonWithType:UIButtonTypeCustom]; //nameView.backgroundColor=[UIColor redColor]; [nameView setBackgroundImage:... ...
分类:
移动开发 时间:
2017-03-03 14:59:20
阅读次数:
166
用了别人的代码,一直总有一个报错,一开始没注意,最近项目快完期了,得处理下警告之类的东西, 后面发现之前那个大神代码是这样写的 援引:http://www.cnblogs.com/songxing10000/p/6297542.html ...
分类:
其他好文 时间:
2017-02-27 13:38:04
阅读次数:
323