#import "ViewController.h" @interface ViewController () @property (nonatomic, strong) UIScrollView *scrollView; @end @implementation ViewController -
分类:
其他好文 时间:
2016-02-22 19:02:18
阅读次数:
126
关于iOS含有如下宏定义的 UI_APPEARANCE_SELECTOR; 的方法 ,不知道你是否知道其真正的意义。当你给你的navigationBar设置BarTintColor时,你可以使用2种方法(当然只有在iOS7以后在有BarTintColor方法)@property(nonatomic,
分类:
移动开发 时间:
2016-02-22 17:13:25
阅读次数:
184
#import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end #import "App
分类:
移动开发 时间:
2016-02-22 00:24:37
阅读次数:
250
#import "ViewController.h"#import "Student.h"@interface ViewController ()@property (nonatomic, retain) NSMutableArray *dataArray;@property (nonatomic,
分类:
其他好文 时间:
2016-02-21 09:01:11
阅读次数:
202
(1)UIScrollView可以用于显示多于一个屏幕的内容,超出屏幕范围的内容可以通过滑动进行查看。 (2)常见属性: @property(nonatomic)CGPoint contentOffset; UIScrollView当前滚动位置 @property(nonatomic)CGSize
分类:
其他好文 时间:
2016-02-20 21:36:21
阅读次数:
183
1、UIScrollView@property(nonatomic)CGPoint contentOffset;这个属性用来表示UIScrollView滚动的位置 @property(nonatomic)CGSize contentSize;这个属性用来表示UIScrollView内容的尺寸,滚动范
分类:
其他好文 时间:
2016-02-20 21:28:08
阅读次数:
230
使用Quartz2D实现时钟动画(一) 要实现如果所示的时钟效果,首先将素材表盘拖入工程 1.定义时针、分针、秒针三个图层类成员属性 @property(nonatomic,strong)CALayer *secondLayer; @property(nonatomic,strong)CALayer
分类:
其他好文 时间:
2016-02-20 00:40:46
阅读次数:
454
atomic和nonatomic用来决定编译器生成的getter和setter是否为原子操作。 atomic 设置成员变量的@property属性时,默认为atomic,提供多线程安全。 在多线程环境下,原子操作是必要的,否则有可能引起错误的结果。加了atomic,setter函数会变成下面这样:
分类:
其他好文 时间:
2016-02-19 14:24:45
阅读次数:
155
创建一个UITableView 和一个UIImageView @property (nonatomic, strong) UITableView *tableView; @property (nonatomic, strong) UIImageView *headerImgaeView; 初始化 1
分类:
其他好文 时间:
2016-02-19 12:24:38
阅读次数:
174
atomic和nonatomic用来决定编译器生成的getter和setter是否为原子操作。 atomic 设置成员变量的@property属性时,默认为atomic,提供多线程安全。 在多线程环境下,原子操作是必要的,否则有可能引起错误的结果。加了atomic,setter函数会变成下面这样:
分类:
其他好文 时间:
2016-02-18 10:00:00
阅读次数:
146