码迷,mamicode.com
首页 >  
搜索关键字:nonatomic    ( 1690个结果
iOS UISegmentedControl的例子
#import <UIKit/UIKit.h> @interface ViewController : UIViewController @property(strong,nonatomic) UIImageView *MyImage; @property(strong,nonatomic) UIT
分类:移动开发   时间:2016-03-09 23:54:01    阅读次数:265
iOS UISlider和 UISwitch的例子
#import <UIKit/UIKit.h> @interface ViewController : UIViewController @property(strong,nonatomic) UISlider *MySlider; @property(strong,nonatomic) UIVie
分类:移动开发   时间:2016-03-09 23:43:27    阅读次数:197
用button简单控制音乐的播放与暂停
ViewController.h //定义一个按钮button @property(strong,nonatomic)UIButton *button; ViewController.m #import "ViewController.h" //导入头文件 #import <AVFoundation
分类:其他好文   时间:2016-03-09 23:43:14    阅读次数:211
查看工程中图片资源大小,是否使用
1.全局变量: @property (nonatomic, assign) BOOL isPicUsed; 2.方法: - (NSInteger)codeLinesWithPath:(NSString *)path{ NSFileManager *fileManaget = [NSFileManag
分类:其他好文   时间:2016-03-09 21:03:51    阅读次数:221
NSString什么时候用copy,什么时候用strong
大部分的时候NSString的属性都是copy,那copy与strong的情况下到底有什么区别呢? 比如: @property (retain,nonatomic) NSString *rStr; @property (copy, nonatomic) NSString *cStr; - (void
分类:其他好文   时间:2016-03-09 01:21:27    阅读次数:129
UI笔记2
/** * 用户名 */ @property(strong,nonatomic) UITextField *txtName; @property(strong,nonatomic) UITextView *txtView; #import "ViewController.h" @interface
分类:其他好文   时间:2016-03-08 23:54:56    阅读次数:203
关灯游戏
ViewController.h @property(strong,nonatomic)UIButton *button; @property(assign,nonatomic)int number; ViewController.m //每一排的个数 int index=5; //按钮的宽度 CG
分类:其他好文   时间:2016-03-08 23:50:30    阅读次数:172
剪刀石头布 (人机对战)
#import <Foundation/Foundation.h> @interface Computer : NSObject @property(assign,nonatomic) int ComCount; -(int)Punches;//出拳 @end #import "Computer.h
分类:其他好文   时间:2016-03-08 23:39:44    阅读次数:253
UIButton 的基本用法
#import <UIKit/UIKit.h> @interface ViewController : UIViewController @property(strong,nonatomic) UIButton *btnTest; @property(strong,nonatomic) UIText
分类:其他好文   时间:2016-03-08 23:18:00    阅读次数:237
@property中有哪些属性关键字?/ @property 后面可以有哪些修饰符?
出题者简介: 孙源(sunnyxx),目前就职于百度 整理者简介:陈奕龙(子循),目前就职于滴滴出行。 转载者:豆电雨(starain)微信:doudianyu 属性可以拥有的特质分为四类: 原子性--- nonatomic 特质 在默认情况下,由编译器合成的方法会通过锁定机制确保其原子性(atom
分类:其他好文   时间:2016-03-08 12:03:56    阅读次数:260
1690条   上一页 1 ... 39 40 41 42 43 ... 169 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!