升级到ios11 在调用系统相册的时候出现崩溃 调用相机不崩溃提示错误为:Only RGBA or White color spaces are supported in t...

升级到ios11 在调用系统相册的时候出现崩溃 调用相机不崩溃提示错误为:Only RGBA or White color spaces are supported in t...
走马灯 NSString *str = @"人生若只如初见,何事秋风悲画扇。"; self.scrollLabel = [[UILabel alloc] initWithFr...
1.首先在plist文件中添加一key值:View controller-based status bar appearance设置为NO 2.在AppDelegate中添加...
复制粘贴为英文改info.plist
//截取字符串 -(NSString*)cutString:(NSString*)str { NSMutableString*c = [[NSMutableStringall...
//得到字节数函数 - (int)stringConvertToInt:(NSString*)strtemp { intstrlength =0; char* p = (ch...
[[NSNotificationCenterdefaultCenter]addObserver:self selector:@selector(someMethod1) na...
在b控制器中加入 self.navigationController.interactivePopGestureRecognizer.delegate= (id)self; ...
GBK格式 NSStringEncodingenc =CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingG...
iOS10以后需要在userlist中加入 <key>NSCameraUsageDescription</key> App需要您的同意,才能访问相册 <key>NSPhoto...
//生成灰色,棕色,反色图片1灰,2棕,3反 - (UIImage*) grayscale:(UIImage*)anImage type:(char)type { CGIma...
/* *截取Byte数组 * begin:从哪一位开始 * count:截取的个数 */ - (void)bytesplit2byte:(Byte[])src orc:(By...
//二进制转十进制 - (NSString*)toDecimalSystemWithBinarySystem:(NSString*)binary { intll =0; in...
抖动处理,需要先将位图转成黑白的再做处理 uint32_t *pixels =bitmapData; intgray[width*height]; for(inti =0; ...
//将字典转成json字符串 + (NSString*)convertToJSONData:(id)infoDict { NSError*error; NSData*json...
前言 最近一直在开发关于蓝牙的功能,本来是不想写这一篇文章,因为网上关于ios蓝牙开发的文章实在太多了,成吨成吨的文章出现,但是很遗憾都只是一些皮毛,或者只是简单的介绍一下基...