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

objective-c 628

#Objective-C
简单九宫格 面试被问到让手写 直接跪了

- (void)jiugongge{ NSArray *array =@[[UIColor cyanColor],[UIColor lightGrayColor], [UIColo…

2015-07-07 598

#Objective-C
forAppDownloadTest

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIS…

2015-07-05 517

#Objective-C
iOS实现图片高斯模糊效果

支持iOS 6.0 and later CIContext *context = [CIContext contextWithOptions:nil]; CIImage *inpu…

2015-07-03 345

#Objective-C
IOS原生API,二维码扫描(https://github.com/reesun1130/SYQRCodeDemo)

+ (BOOL)isAVCaptureActive { AVCaptureDevice *aDevice = [AVCaptureDevice defaultDeviceWithM…

2015-07-03 1,044

#Objective-C
iOS8自带模糊效果

typedef NS_ENUM(NSInteger, UIBlurEffectStyle) { UIBlurEffectStyleExtraLight, UIBlurEffectS…

2015-07-03 488

#Objective-C
根据Date获取x分钟前/x小时前/昨天/x天前/x个月前/x年前的iOS代码

  返回x分钟前/x小时前/昨天/x天前/x个月前/x年前 - (NSString *)timeInfo { return [NSDate timeInfoWithDat…

2015-07-02 321

#Objective-C
iOS取消导航条对视图的影响

iOS7新特性 edgesForExtendedLayout edgesForExtendedLayout是UIExtendedEdge的属性 设置为 self.edgesForE…

2015-07-01 451

#Objective-C
iOS混排计算中英文个数,中午算一个字符,英文和符号算半个字符

-(int)convertToInt:(NSString*)strtemp { int strlength = 0; char* p = (char*)[strtemp cStri…

2015-07-01 551

#Objective-C
iOS 检测手机是否安装SIM卡

[CTSIMSupportGetSIMStatus() isEqualToString:kCTSIMSupportSIMStatusNotInserted] 可以判断是否插入了si…

2015-07-01 514

#Objective-C
iOS打开相机的闪光灯

- (IBAction)openFlash:(id)sender { AVCaptureDevice *device = [AVCaptureDevice defaultDevic…

2015-06-28 1,029

#Objective-C
利用AVFoundation实现Blink拍照和录像的功能

github代码 前几天偶然发现一个app叫Blink,闲来无事,纯当练手,于是就尝试下自己实现它的功能. 页面都挺简单的 1.打开相机 – (void)openCam…

2015-06-28 233

#Objective-C
iOS 创建文件夹,删除文件夹,对文件夹重命名的操作

+ (void)createFolder:(NSString *)folderName { NSString *imageDir = [NSString stringWithFor…

2015-06-28 875
1 17 18 19 20 21 53