#import "ViewController.h" #import <CoreImage/CoreImage.h> @interface ViewController () @property (weak, nonatomic) IBOutlet UIImageView *imageView; @ ...
分类:
其他好文 时间:
2016-05-12 06:54:43
阅读次数:
236
#import "ViewController.h" @interface ViewController ()<UIWebViewDelegate> @property (weak, nonatomic) IBOutlet UIWebView *webView; @property (weak, n ...
分类:
Web程序 时间:
2016-05-11 14:54:40
阅读次数:
199
#import "ViewController.h" @interface ViewController () @property(nonatomic,nullable)NSString*name;//可以为空 @property(nonatomic,nonnull)NSString*passwor ...
分类:
移动开发 时间:
2016-05-11 11:11:17
阅读次数:
230
#import "ViewController.h" #define FileName @"121212.mp4" @interface ViewController ()<NSURLSessionDataDelegate> @property (weak, nonatomic) IBOutlet ...
分类:
Web程序 时间:
2016-05-11 06:56:45
阅读次数:
193
#import "ViewController.h" @interface ViewController ()<NSURLConnectionDataDelegate> @property (weak, nonatomic) IBOutlet UIProgressView *progressView ...
分类:
Web程序 时间:
2016-05-11 06:46:42
阅读次数:
156
MJExtension能做什么? 1.最简单的字典转模型 新建User类 typedef enum { SexMale, SexFemale} Sex; @interface User : NSObject @property (copy, nonatomic) NSString *name; @p ...
分类:
其他好文 时间:
2016-05-08 16:49:13
阅读次数:
181
一.先贴一下未封装的代号,好跟后面的对比 @interface MTHomeDropdown : UIView + (instancetype)dropdown; @property (nonatomic, strong) NSArray *categories; @end 1.categories ...
分类:
移动开发 时间:
2016-05-08 01:08:31
阅读次数:
650
@property (weak, nonatomic) IBOutlet UIView *redView;@property (weak, nonatomic) IBOutlet UILabel *label; 代码收集来自: http://www.cnblogs.com/zzuliliu/p/54 ...
分类:
移动开发 时间:
2016-05-08 01:01:30
阅读次数:
286
1.打开数据库 #import "ViewController.h" #import "FMDB.h" @interface ViewController () @property (nonatomic, strong) FMDatabase *db; @end @implementation Vi ...
分类:
数据库 时间:
2016-05-07 12:51:13
阅读次数:
206
泛型:限制类型
开发中使用场景:
1.限制集合中的类型,只能检测方法的调用,因为声明的泛型只能存在方法中
2.当一个类在声明的时候,某个对象的属性不确定,只有创建对象的时候才能确定,就可以使用泛型。
定义泛型
书写格式:放在类型的后面,表示限制这个类型
// 定义泛型:确定类型
@property (nonatomic, strong) NS...
分类:
移动开发 时间:
2016-05-07 10:23:16
阅读次数:
154