随笔分类 -  UI_senior

数据的操作与处理
摘要:在使用,SDWebImage加载图片的时候,出现图片加载混乱,具体情况是 1> 从服务器获取数据,没有滑动的时候显示正常,cell上的数据错乱显然是由于cell的重用导致的.由于图片是异步下载的,下载完成才给cell设置,但是在这个过程中用户可能会上下滑动,滑动的时候会导致cell的重用,比如第0行 阅读全文
posted @ 2017-04-17 11:33 恒远也 阅读(1901) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-03-31 20:33 恒远也 阅读(445) 评论(0) 推荐(0)
摘要:1 #import "BasicViewController.h" 2 3 @interface BasicViewController () 4 //用来测试动画效果的一个视图 5 @property (weak, nonatomic) IBOutlet UIView *testView; 6 7 @end 8 9 @implementation BasicViewCo... 阅读全文
posted @ 2016-03-31 20:31 恒远也 阅读(216) 评论(0) 推荐(0)
摘要:2.spring 阅读全文
posted @ 2016-03-31 20:29 恒远也 阅读(264) 评论(0) 推荐(0)
摘要:1 #import "ViewController.h" 2 3 @interface ViewController () 4 @property (weak, nonatomic) IBOutlet UIImageView *imageView; 5 @property (weak, nonatomic) IBOutlet UIView *uiview; 6 7... 阅读全文
posted @ 2016-03-31 20:04 恒远也 阅读(196) 评论(0) 推荐(0)
摘要:由于系统默认加载main.storyboard,所以当我们添加了其他的storyboard之后想要先加载到我们自定的storyboard则需在appdelegate里面进行相应的设置 阅读全文
posted @ 2016-03-25 21:23 恒远也 阅读(159) 评论(0) 推荐(0)
摘要:1.创建管理器 阅读全文
posted @ 2016-03-25 21:19 恒远也 阅读(164) 评论(0) 推荐(0)
摘要:1 #import "ViewController.h" 2 3 @interface ViewController () 4 5 @end 6 7 @implementation ViewController 8 9 - (void)viewDidLoad { 10 [super viewDidLoad]; 11 // Do an... 阅读全文
posted @ 2016-03-25 21:17 恒远也 阅读(165) 评论(0) 推荐(0)
摘要:1 #import "TableViewController.h" 2 3 @interface TableViewController () 4 5 @end 6 7 @implementation TableViewController 8 9 - (void)viewDidLoad { 10 [super viewDidLoad]; 11 ... 阅读全文
posted @ 2016-03-25 21:15 恒远也 阅读(172) 评论(0) 推荐(0)
摘要:1 #import "ViewController.h" 2 3 @interface ViewController () 4 5 @end 6 7 @implementation ViewController 8 9 - (void)viewDidLoad { 10 [super viewDidLoad]; 11 //向主线程添加... 阅读全文
posted @ 2016-03-25 21:13 恒远也 阅读(254) 评论(0) 推荐(0)
摘要:1 //GCD单例 2 +(instancetype)share 3 { 4 //整个生命周期只创建一次 5 static GCDSingleton *object = nil; 6 static dispatch_once_t onceToken; 7 dispatch_once(&onceToken,^{ 8 object = ... 阅读全文
posted @ 2016-03-25 21:12 恒远也 阅读(251) 评论(0) 推荐(0)
摘要:1 #import "ViewController.h" 2 3 @interface ViewController () 4 //总票数 5 @property (nonatomic,assign) NSInteger count; 6 @end 7 8 @implementation ViewController 9 10 - (void)viewDidLoad { ... 阅读全文
posted @ 2016-03-23 22:39 恒远也 阅读(130) 评论(0) 推荐(0)
摘要:1 #import "AppDelegate.h" 2 3 @interface AppDelegate () 4 5 @end 6 7 @implementation AppDelegate 8 9 10 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(N... 阅读全文
posted @ 2016-03-18 20:25 恒远也 阅读(171) 评论(0) 推荐(0)
摘要:1 #import "ViewController.h" 2 #import "KeychainItemWrapper.h" 3 #import "RSA.h" 4 #import "Person.h" 5 @interface ViewController () 6 @property (weak, nonatomic) IBOutlet UITextField *userName... 阅读全文
posted @ 2016-03-18 20:21 恒远也 阅读(398) 评论(0) 推荐(0)
摘要:2.NSURLSession网络处理,都有的是代理和block ,session以后把同步删了,想同步用过期的NSURLSesssion 阅读全文
posted @ 2016-03-17 17:44 恒远也 阅读(243) 评论(0) 推荐(0)
摘要:1 #import "MovieTableViewController.h" 2 #import "JSONKit.h" 3 #import "Movie.h" 4 #import "MovieTableViewCell.h" 5 @interface MovieTableViewController () 6 @property (nonatomic,strong) NSMutab... 阅读全文
posted @ 2016-03-16 20:34 恒远也 阅读(365) 评论(0) 推荐(0)
摘要:1 #import "XMLViewController.h" 2 #import "Student.h" 3 @interface XMLViewController () 4 @property (strong,nonatomic) NSMutableArray *stuArray; 5 @property (strong,nonatomic) Student *student; ... 阅读全文
posted @ 2016-03-16 20:31 恒远也 阅读(241) 评论(0) 推荐(0)
摘要:1.注意两点,一.添加/usr/include/libxml2 二.将GDataXMLNode.m设置为MRC 阅读全文
posted @ 2016-03-16 20:29 恒远也 阅读(226) 评论(0) 推荐(0)
摘要:1 // 谓词 NSpredicate 2 3 // OC中的谓词操作是针对于数组类型的,他就好比数据库中的查询操作,数据源就是数组,这样的好处是我们不需要编写很多代码就可以去操作数组,同时也起到过滤的作用,我们可以编写简单的谓词语句,就可以从数组中过滤出我们想要的数据。非常方便。在Java中是没有这种技术的,但是有开源的框架已经实现了此功能。 4 ... 阅读全文
posted @ 2016-03-16 14:10 恒远也 阅读(359) 评论(0) 推荐(0)
摘要:1 #import "ClassController.h" 2 #import "LOClass.h" 3 #import "Student.h" 4 #import "Teacher.h" 5 #import "AppDelegate.h" 6 #import "StudentController 阅读全文
posted @ 2016-03-15 20:02 恒远也 阅读(185) 评论(0) 推荐(0)