- (void)jiugongge{ NSArray *array =@[[UIColor cyanColor],[UIColor lightGrayColor], [UIColo…
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIS…
+ (BOOL)isAVCaptureActive { AVCaptureDevice *aDevice = [AVCaptureDevice defaultDeviceWithM…
typedef NS_ENUM(NSInteger, UIBlurEffectStyle) { UIBlurEffectStyleExtraLight, UIBlurEffectS…
支持iOS 6.0 and later CIContext *context = [CIContext contextWithOptions:nil]; CIImage *inpu…
返回x分钟前/x小时前/昨天/x天前/x个月前/x年前 - (NSString *)timeInfo { return [NSDate timeInfoWithDat…
iOS7新特性 edgesForExtendedLayout edgesForExtendedLayout是UIExtendedEdge的属性 设置为 self.edgesForE…
-(int)convertToInt:(NSString*)strtemp { int strlength = 0; char* p = (char*)[strtemp cStri…
[CTSIMSupportGetSIMStatus() isEqualToString:kCTSIMSupportSIMStatusNotInserted] 可以判断是否插入了si…
CLGeocoder *myGeocoder = [[CLGeocoder alloc] init]; [myGeocoder geocodeAddressString:_sear…
CAGradientLayer *gradient = [CAGradientLayer layer]; gradient.frame = self.view.bounds; gr…
利用CIDetector来人脸识别 添加图片: UIImage* image = [UIImage imageNamed:@"face.jpg"]; …