码迷,mamicode.com
首页 >  
搜索关键字:nonatomic    ( 1690个结果
CoreLocation基本使用
#import "CJViewController.h"#import @interface CJViewController ()@property (nonatomic, strong)CLLocationManager *manager;@end@implementation CJViewCo...
分类:其他好文   时间:2014-08-29 21:13:58    阅读次数:188
category使用 objc_setAssociatedObject/objc_getAssociatedObject 实现添加属性
属性 其实就是get/set 方法。我们可以使用 objc_setAssociatedObject/objc_getAssociatedObject 实现 动态向类中添加 方法@interface NSObject (CategoryWithProperty)@property (nonatomic...
分类:其他好文   时间:2014-08-29 10:53:37    阅读次数:175
iOS TableView实现单选checkmark功能
相信大家在做项目时有遇到需要实现这种功能---实现单选某一个cell表示选中这个功能的实现只需要在两个方法中code即可首选我们公开一个属性@property(nonatomic,strong)NSIndexPath *lastPath;并且对其synthesize主要是用来接收用户上一次所选的ce...
分类:移动开发   时间:2014-08-28 16:05:39    阅读次数:243
iOS7_关于UIPickerView_如何实现UIPickerView_如何设定UIPickerView组数_每组数据的行数
在界面上实现一个UIPickerView:1、新建一个 singleViewApplication,在 xxxViewController.m文件中:1 @interface moboViewController () 2 @property (nonatomic, strong) UIPicker...
分类:移动开发   时间:2014-08-28 13:16:09    阅读次数:207
第4课、UITableView专题(三)
一、本次小例子截图: 二、代码如下:#import @interface Product : NSObject//标题@property (strong, nonatomic) NSString * title;//描述@property (strong, nonatomic) NSString ....
分类:其他好文   时间:2014-08-26 19:04:56    阅读次数:242
简易计算器制作
@interface EricAppDelegate () { UIView *_containView; UILabel *_label; UIButton *_butt; NSMutableString *str; } @property(assign,nonatomic)double num1,num2,num3,num4; @end @implementa...
分类:其他好文   时间:2014-08-26 09:56:45    阅读次数:257
内存管理初级基础--代码
person类-----》.h文件#import<Foundation/Foundation.h> @interfacePerson:NSObject<NSCopying>//使用copy必须引入NSCopying协议。。。 //语义设置 //1.NSString接收了copy协议, //2.大多数规范化 @property(nonatomic,copy)NSString*name; @property(nonat..
分类:其他好文   时间:2014-08-26 03:11:16    阅读次数:255
关灯游戏(iOS)
在.h中声明属性如下 @property (retain, nonatomic) UIWindow *window; @property (nonatomic, retain) UIView *aView; @property (nonatomic, retain) UIButton *button; 在.m中实现如下 @implementation MAYAppDelegate...
分类:移动开发   时间:2014-08-24 14:15:12    阅读次数:273
自定义TextField的删除按钮
自定义TextField的删除按钮#import @interface CustomTextField : UITextField@property(strong,nonatomic)NSString * alwaysShowStr;@end@interface CustomTextField ()...
分类:其他好文   时间:2014-08-22 10:42:06    阅读次数:145
block对象传递事件
MyScrollView.h@property (nonatomic,assign) NSInteger currentPage;@property (nonatomic,strong) NSInteger (^numberOfPage)(MyScrollView *);@property (non...
分类:其他好文   时间:2014-08-21 14:58:54    阅读次数:166
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!