码迷,mamicode.com
首页 >  
搜索关键字:nonatomic    ( 1690个结果
iOS UIPageControl与UIScrollView配合使用代码
#import "RootViewController.h" #import "RootView.h" @interface RootViewController () @property(nonatomic,retain)RootView *myview; @end @implementation RootViewController - (id)initWithNibName:(NSSt...
分类:移动开发   时间:2014-11-04 22:44:59    阅读次数:312
iOS 按钮跳转页面
ViewController.h中定义按钮 btn1; @property (weak, nonatomic) IBOutlet UIButton *btn1; ViewController.m中实现按下按钮跳转到:qqqViewController; - (IBAction)btn1:(i...
分类:移动开发   时间:2014-11-04 19:48:45    阅读次数:196
大钟的ios开发之旅(2)————简单说说ios中ARC与非ARC模式下的property的变量修饰词
一、前言       ios开发中,@property的修饰就有很多的修饰词,如retain、assign、strong、weak、nonatomic等等,而这些修饰词在ARC模式下与非ARC模式下也是略有不同。下面先简单说说ARC模式 二、什么是ARC       ARC是iOS 5推出的新功能,全称为Automatic Reference Counting。一句话说,...
分类:移动开发   时间:2014-11-04 19:47:10    阅读次数:262
最简答的加法计算器 关闭键盘的方法 [_result setText:[NSString stringWithFormat:@"%ld",a]];
@property (weak, nonatomic) IBOutlet UITextField *Text1;@property (weak, nonatomic) IBOutlet UITextField *Text2;@property (weak, nonatomic) IBOutlet U...
分类:其他好文   时间:2014-11-04 16:35:21    阅读次数:255
iOS开发UI篇—使用UItableview完成一个简单的QQ好友列表(二)
一、实现效果 二、实现代码1.数据模型部分TXFriendGroup.h文件 1 #import 2 3 @interface TXFriendGroup : NSObject 4 @property (nonatomic, copy) NSString *name; 5 /** 6 ...
分类:移动开发   时间:2014-11-02 17:49:24    阅读次数:124
UIScrollView学习-01
?@property(nonatomic) CGPoint contentOffset; ?这个属性用来表示UIScrollView滚动的位置? ?@property(nonatomic) CGSize contentSize;? ?这个属性用来表示UIScrollView内容的尺寸,滚动范围(能滚多远) ...
分类:其他好文   时间:2014-10-30 22:51:14    阅读次数:276
电话本索引【表视图】
MainViewController.h @interface RootViewController : UIViewController @property(nonatomic, retain)NSDictionary *dic; @property(nonatomic, retain)NSArray *allKeys; MainViewController.m - (void)view...
分类:其他好文   时间:2014-10-30 11:52:11    阅读次数:188
QQ列表的展开收起
RootViewController.h @interface RootViewController : UIViewController { BOOL Close[15]; //用于存放每一组的收起展开状态 YES 是收起 NO是展开 UITableView *_tableView; } @property(nonatomic, retain)NSArray *da...
分类:其他好文   时间:2014-10-30 11:50:52    阅读次数:113
电话本的检索功能
设置带有导航栏的根视图控制器 RootViewController.h @interface RootViewController : UIViewController { UITableView *_tableView; } @property(nonatomic, retain)NSArray *data; //存放原本的数据 @property(nonatomic, reta...
分类:其他好文   时间:2014-10-30 11:50:28    阅读次数:182
细数AutoLayout以来UIView和UIViewController新增的相关API<转写>
细数AutoLayout以来UIView和UIViewController新增的相关API – UIViewController篇UILayoutSupport@property(nonatomic,readonly,retain)idtopLayoutGuideNS_AVAILABLE_IOS(7...
分类:Windows程序   时间:2014-10-29 23:30:03    阅读次数:277
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!