![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios
zj794318840
这个作者很懒,什么都没留下…
展开
-
区分iphone 和ipad
区分iphone 和ipad if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){ }else{ }转载 2014-04-09 11:14:37 · 545 阅读 · 0 评论 -
合并库文件
lipo -create /Users/mac/Library/Developer/Xcode/DerivedData/MyBrushesInk-gblfyicidhxnwvflslbwvsjwchqb/Build/Products/Debug-iphoneos/libMyBrushesInk.a /Users/mac/Library/Developer/Xcode/DerivedData/My原创 2014-04-09 11:16:20 · 487 阅读 · 0 评论 -
ios获取当前使用语言
NSUserDefaults* defs = [NSUserDefaults standardUserDefaults]; NSArray* languages = [defs objectForKey:@"AppleLanguages"]; NSString *local = [languages objectAtIndex:0];原创 2014-04-09 11:18:39 · 480 阅读 · 0 评论 -
获取当前app的名称和版本号
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; // app名称 NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"]; // app版本 NSString *app_转载 2014-04-09 11:09:30 · 663 阅读 · 0 评论 -
直接跳转到app store指定应用页面或评论页面
跳转到app store指定应用页面: NSString *str = [NSString stringWithFormat:@"http://itunes.apple.com/us/app/id%d",472907899]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]]; 其中47290789转载 2014-04-09 11:11:06 · 644 阅读 · 0 评论 -
IOS 图形开发绘图小结
IOS 图形开发绘图小结 iPhone图形开发绘图教程是本文要介绍的内容,介绍了很多关于绘图类的使用,先来看详细内容讲解。 1、绘图总结: 绘图前设置: 1. CGContextSetRGBFillColor/CGContextSetFillColorWithColor //填充色 2. CGContextSetRGBStrokeColor/C转载 2014-04-09 11:13:10 · 643 阅读 · 0 评论 -
ios screenShot
/** *截图功能 */ -(void)screenShot{ UIGraphicsBeginImageContextWithOptions(CGSizeMake(640, 960), YES, 0); //设置截屏大小 [[self.view layer] renderInContext:UIGraphicsGetCurrentContext()];转载 2014-07-23 10:44:00 · 853 阅读 · 0 评论 -
Create movie from array of images
1. - (void) writeImagesAsMovie:(NSArray *)array toPath:(NSString*)path { 2. 3. NSString *documents = [NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, Y转载 2014-07-23 10:43:02 · 506 阅读 · 0 评论 -
iPhone Read UIimage (frames) from video with AVFoundation
You're talking about using the calls for generating what Apple calls thumbnail images from videos at specific times. For an MPMoviePlayerController (what iOS uses to hold a video from a file or other转载 2014-07-23 10:47:10 · 656 阅读 · 0 评论