![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios
WuFeng39
这个作者很懒,什么都没留下…
展开
-
清理缓存
-(void)myClearCacheAction{ dispatch_async( dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0) , ^{ NSString *cachPath = ...原创 2019-12-05 01:17:04 · 230 阅读 · 0 评论 -
iOS 之动画(位移/透明/缩小/扩大)
位移: UIView * testView; UIView.animateWithDuration(1, animations: { testView.center.x =self.view.bounds.width -testView.center.x; });透明:UIView.animate原创 2016-03-30 17:09:24 · 1715 阅读 · 0 评论 -
清理缓存
-(void)myClearCacheAction{ dispatch_async( dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0) , ^{ NSString *cachP原创 2015-12-21 17:09:08 · 437 阅读 · 0 评论 -
iphone启动页的设置方式
1/欢迎界面使用LaunchImage 针对IOS7,苹果提供了LaunchImage来实现欢迎界面,开发的时候只需要将设计好对应尺寸的图片拖到对应的状态的位置即可。 在IOS7,欢迎界面对应的尺寸分别为:iphone 竖屏 640*960 640*1136ipad 竖屏 768*1024 1536*2048ipad 横屏 1转载 2015-12-30 16:42:46 · 1543 阅读 · 0 评论 -
PickerView时间,地点选择视图
//从目录获取已经写好的数据(city.json)NSString* filePath = [FileUtil documentsPathWithFileName:@"city.json"]; if (![FileUtil fileExists:filePath]) { filePath = [[NSBundle mainBundle] pathF原创 2016-02-18 18:20:23 · 393 阅读 · 0 评论 -
关于shareSDK微信分享
[ShareSDKregisterApp:@"1111111111"];//不同app设置不同shareSDK的APP Key //在QQ平台中注册app的id跟appSecret,在下面填写响应的appid以及appSecret //在QQ空间平台中注册app的id跟appSecret,在下面填写响应的appid以及appSecret [Sh原创 2015-12-01 15:27:34 · 337 阅读 · 0 评论 -
iOS之保存图片到手机相册中
-(void)bnt{ //保存整个屏幕的图片 UIWindow *screenWindow = [[UIApplicationsharedApplication] keyWindow]; DebugLog(@"wid= %@",screenWindow); UIGraphicsBeginImageContext(screenWind原创 2015-12-02 17:09:43 · 1465 阅读 · 0 评论 -
从相册\拍照获取图片
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{ if(actionSheet.tag ==10101) { if (buttonIndex == 0) {原创 2015-12-21 16:36:00 · 408 阅读 · 0 评论 -
iOS之导航栏的设置与UITabBarController的属性设置
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. //创原创 2016-05-17 17:22:24 · 834 阅读 · 0 评论 -
UIScrollView的基本设置
_headerView = [[UIScrollViewalloc]initWithFrame:CGRectMake(0, 0, hView.frame.size.width, hView.frame.size.height)];//创建滚动视图 _headerView.contentSize =CGSizeMake(self.view.frame.size.width原创 2016-05-20 16:50:26 · 473 阅读 · 0 评论