IOS - Display a base64 image within a UIImageView: 显示一个base64的图片
摘要:base64字符串(base64String)-存的是image数据NSData* data = [[NSData alloc] initWithBase64EncodedString:base64String options:0];UIImage* image = [UIImage imageWi...
阅读全文
posted @
2014-12-26 12:05
tx天翔
阅读(516)
推荐(0)
IOS - 绘制文字 drawInRect: withFont: not working
摘要:在图形绘制中,我们经常会需要绘制文本,但我在给PDF上绘制Text时,始终绘制不上,使用过:[str drawInRect:cubeRect withAttributes:attrs];CGContextShowTextAtPoint(ctx, 100.0, 100.0, "SOME TEXT", ...
阅读全文
posted @
2014-12-25 10:09
tx天翔
阅读(563)
推荐(0)
IOS - xib(Interface Builder,view) - can't change view size(view不能改变大小问题)
摘要:很多时候,我们自定义tableview、collectionview的cell,也有时候我们要自定义窗口xib,但创建xib后,其height、width不可修改。这时问题就来了,怎么才能使我们的自定义xib宽高可修改:项目中创建xib,单独的view时,方法:默认Simulated metric中...
阅读全文
posted @
2014-12-12 10:15
tx天翔
阅读(3049)
推荐(0)
IOS - Ask for Application Badge permission ios8
摘要:UIUserNotificationSettings* notificationSettings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert | UIUserNotificationTypeBa...
阅读全文
posted @
2014-12-06 19:54
tx天翔
阅读(233)
推荐(0)