首页 软件开发 代码片段 objective-c ( Page 27 )

objective-c 628

#Objective-C
IOS调节系统音量

#import <MediaPlayer/MediaPlayer.h> MPMusicPlayerController *musicPlayer; musicPlaye…

2015-05-31 223

#Objective-C
IOS UIButton使用详解

第一、UIButton的定义       UIButton *button=[[UIButton buttonWithType:(…

2015-05-31 772

#Objective-C
iOS定时通知

#pragma mark 添加本地通知 -(void)addLocalNotification{ //定义本地通知对象 UILocalNotification *notificat…

2015-05-28 382

#Objective-C
IOS设置UIView的边框为圆角

述一下实现过程:     •    首先创建一个项目,名字叫:ipad_webwiew    &nb…

2015-05-28 975

#Objective-C
iOS Json的解析与创建

+ (NSString *)voiceMessageConentWithEntity:(VMessageEntity *)entity{ NSLog(@"entity.v…

2015-05-28 208

#Objective-C
UIWebView自适应内容的高度

//自适应文字的高度 - (void)webViewDidFinishLoad:(UIWebView *)webView { NSString *height_str= [webV…

2015-05-28 296

#Objective-C
IOS中十六进制的颜色转换为UIColor

#pragma mark - 颜色转换 IOS中十六进制的颜色转换为UIColor + (UIColor *) colorWithHexString: (NSString *)co…

2015-05-28 487

#Objective-C
IOS中计算文件的大小

通常用于删除缓存的时,计算缓存大小 //单个文件的大小 - (long long) fileSizeAtPath:(NSString*) filePath{ NSFileManag…

2015-05-28 368

#Objective-C
iOS开发 根据日期计算是星期几

NSDateComponents *_comps = [[NSDateComponents alloc] init]; [_comps setDay:23]; [_comps se…

2015-05-28 846

#Objective-C
iOS调用相册和摄像头

- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the vi…

2015-05-28 637

#Objective-C
iOS 设置每天下午4点推送本地通知

UILocalNotification *notification=[[UILocalNotification alloc] init]; if (notification!=ni…

2015-05-28 493

#Objective-C
调用系统照相机把文字改为中文

//好吧 也是刚看到的 涨之势啊 修改info.plist的Localization native development region 的这个属性改为China 拍照界面就能变成…

2015-05-27 1,009
1 25 26 27 28 29 53