(1)AppDelegate.h
#import
@interface AppDelegate : UIResponder
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) NSString *dname;//定义dname传递帐号的值
@property (strong, nona...
分类:
移动开发 时间:
2016-05-07 07:08:40
阅读次数:
131
偏好设置:
plist文件详解:
#import "ViewController.h"
#import "Contact.h"
@interface ViewController ()
@property (nonatomic,copy) NSString *plistPath;
@end
@implementation ViewControll...
分类:
其他好文 时间:
2016-05-06 12:28:10
阅读次数:
141
私有类 _BKObserver _BKObserver 是用来观测属性的对象,它在接口中定义了 4 个属性: @property (nonatomic,readonly,unsafe_unretained) id observee; @property (nonatomic,readonly) NS ...
分类:
其他好文 时间:
2016-05-06 09:27:45
阅读次数:
337
#import <MapKit/MapKit.h> @interface MyPointAnnotation : MKPointAnnotation //大头针信息 @property (nonatomic,copy) NSString *information; //构造方法 - (id)init ...
分类:
其他好文 时间:
2016-05-06 09:20:19
阅读次数:
118
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END 在这两个之间必须属性赋值不可以为空 null_resettable 允许set为空 get不为空 需要重写set 方法 @property(null_resettable,strong,nonatomic)N ...
分类:
移动开发 时间:
2016-05-04 16:57:55
阅读次数:
137
需要对图片进行缓存 写入沙盒中,使用多线程下载图将队列放到字典中,value 线程 key 下载路径 判断是否有该key 没有创建添加一个线程下载 赋值图片只需刷新对应cell 就可以 @property(nonatomic,strong)NSMutableDictionary * imageCac ...
分类:
其他好文 时间:
2016-05-04 13:12:10
阅读次数:
102
#import "ClockView.h" @interface ClockView() /** 存放的都是当前选中的按钮 */ @property (nonatomic, strong) NSMutableArray *selectBtnArray; //当前手指所在的点 @property (n ...
分类:
其他好文 时间:
2016-05-03 20:05:59
阅读次数:
256
#import "DragerViewController.h" @interface DragerViewController () @property (nonatomic, weak) UIView *leftV; @property (nonatomic, weak) UIView *rig ...
分类:
其他好文 时间:
2016-05-03 17:53:26
阅读次数:
151
A --> B 页面传值 数据从A 的页面上拿到,再传给B页面,显示到指定位置 假设 要从 A 页面 获取到 名字,数量 一、在B 页面 .h 定义 将name,number 放到 字典里 @property (nonatomic,strong) NSString *name; @property ...
分类:
其他好文 时间:
2016-05-03 17:45:42
阅读次数:
108
#import "ViewController.h" @interface ViewController () <UIScrollViewDelegate> @property (weak, nonatomic) IBOutlet UIScrollView *scrollView; @propert ...
分类:
其他好文 时间:
2016-05-02 23:00:35
阅读次数:
391