码迷,mamicode.com
首页 >  
搜索关键字:nonatomic    ( 1690个结果
开发进阶03_UIView的常见属性
frame:类型是CGRect @property (nonatomic) CGRect frame; 控件所在矩形框的位置和尺寸(以父控件的左上角为坐标原点)bounds @property (nonatomic) CGRect bounds; 控件所在矩形框的位置和尺寸(以自己左上角为坐...
分类:其他好文   时间:2014-10-28 00:16:59    阅读次数:293
IOS 完成来电归属地
首先是一个库:然后设置一个工具类.h 1 @interface HMFoundLocation : NSObject 2 3 AS_SINGLETON(HMFoundLocation) 4 5 @property(nonatomic,strong)NSString *address; 6 7 ...
分类:移动开发   时间:2014-10-24 18:02:48    阅读次数:240
ios开发-get和post
直接上代码:示例:(在storyboard中拖两个控件textField、一个UIButton,连线(userNameText、password、login))@interface ViewController()@property(nonatomic,weak)IBOutlet UITextFie...
分类:移动开发   时间:2014-10-23 22:37:39    阅读次数:216
封装 block 请求网络数据
NetWorking.h#import<Foundation/Foundation.h>typedefvoid(^FinishBlock)(idresponseObject);@interfaceNetWorking:NSObject@property(nonatomic,strong)FinishBlockfinishBlock;+(void)GetDataWithURL:(NSString*)urlfinshedBlock:(FinishBlock)block;@endNetWorking.m..
分类:其他好文   时间:2014-10-23 21:09:07    阅读次数:287
ios关于uibutton内部结构
1 1> UIButton内部默认有个UIImageView、UILabel控件,可以分别用下面属性访问: 2 @property(nonatomic,readonly,retain) UIImageView *imageView; 3 @property(nonatomic,readonly,r....
分类:移动开发   时间:2014-10-21 15:20:44    阅读次数:186
ios开发- NSOperation高级功能
直接上代码示例1:@interface TBViewController()//队列@property(nonatomic,strong)NSOperationQueue *queue;@end//队列的暂停和继续(在storyboard中拖两个按钮,分别为暂停、继续,连线)//暂停-(IBActi...
分类:移动开发   时间:2014-10-21 00:48:51    阅读次数:229
自定义等待视图
AlertView.h#import @interface AlertView : UIView@property (strong, nonatomic) UILabel *messageLabel;@endAlertView.m#import "AlertView.h"@interface Ale...
分类:其他好文   时间:2014-10-18 01:52:05    阅读次数:184
GCD 实现生产-消费 模式
#import "ViewController.h"@interface ViewController (){ }@property (nonatomic,strong) dispatch_semaphore_t sema;@end@implementation ViewControll...
分类:其他好文   时间:2014-10-16 20:24:43    阅读次数:170
为数据表对象(NSManagedObject)添加排序
eg:数据库表对象 @interface Meditation : NSManagedObject @property (nonatomic, retain) NSString * order;//用来排序的属性值,用0、1、2、3...排序 @end //在这个方法里操作 - (void)tableView:(UITableView *)tableView ...
分类:编程语言   时间:2014-10-15 18:22:01    阅读次数:113
NSArray的创建(二)类方法
利用一个类方法来创建一个数组, 关于什么是类方法, 同学们麻烦请回去自行查找, 这里不做解释, 下面我们来看看方法和例子.涉及的方法:@property (nonatomic, assign) int age: 定义一个int age 的属性.+ (instancetype)arrayWithArr...
分类:其他好文   时间:2014-10-15 15:35:43    阅读次数:168
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!