04 2013 档案

摘要:typedef enum { UIViewContentModeScaleToFill, UIViewContentModeScaleAspectFit, // contents scaled to fit with fixed aspect. remainder is transparent UIViewContentModeScaleAspectFill, // contents scaled to fill with fixed aspect. some portion of content may be clipped. UIViewConten... 阅读全文
posted @ 2013-04-28 14:45 wsjisji 阅读(448) 评论(0) 推荐(0)
摘要:Overview: Social FeaturesThere are three ways you can share to social media sites:TheUIActivityViewControllerclass allows your app to provide several services in context, one of which would be posting content to social media sites.TheSLComposeViewControllerclass is targeted more to social media site 阅读全文
posted @ 2013-04-23 13:56 wsjisji 阅读(814) 评论(0) 推荐(0)
摘要:IOS 获取 Camera roll里的图片 or 视频。-(void)getImgs{ dispatch_async(dispatch_get_main_queue(), ^{ NSAutoreleasePool *pool = [[NSAutoreleasePoolalloc] init]; ALAssetsLibraryAccessFailureBlock failureblock = ^(NSError *myerror){ NSLog(@"相册访问失败 =%@", [myerror localizedDescription]);... 阅读全文
posted @ 2013-04-18 09:51 wsjisji 阅读(1215) 评论(0) 推荐(0)
摘要://初始化:UIActivityIndicatorView* indicator = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(0, 0, 50, 50)];//设置显示样式,见UIActivityIndicatorViewStyle的定义indicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge;//设置显示位置[indicator setCenter:CGPointMake(self.frame.size.width / 阅读全文
posted @ 2013-04-09 09:37 wsjisji 阅读(9689) 评论(0) 推荐(0)