自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

转载 博客搬家至简书

简书地址:http://www.jianshu.com/users/666b623d4bf1/latest_articles转载于:https://www.cnblogs.com/Jmailbox/p/5903165.html

2016-09-24 14:19:00 137

转载 iOS9.3 Could not find Developer Disk Image 真机调试错误解决办法

昨天手机系统升级9.3,到了公司真机测试的时候发现Xcode(7.2.1)报错:Could not find Developer Disk Image , 这是因为我的Xcode7.2中还没有支持9.3的Disk Image。解决办法:1、下载该Disk Image,放到/Applications/Xcode.app/Contents/Developer/Platforms/iPho...

2016-03-23 13:51:00 144

转载 Xcode 运行报错:“Your build settings specify a provisioning profile with the UUID ****** however, no such...

iOS开发中遇到“Your build settings specify a provisioning profile with the UUID ****** however, no such provisioning profile was found”解决办法1.找到项目中的**.xcodeproj文件,点击右键,show package contents(打开包内容)。2....

2016-03-04 17:18:00 160

转载 iOS中枚举定义的三种方式

最简单的方式typedef enum{ num1 = 0, num2 = 1, num3 = 2}num;同时我们还可以使用NS_ENUM的方式定义枚举typedef NS_ENUM (NSInteger,num){ num1 = 0, num2= 1, num3= 2};当牵扯到位移相关操作的时候,我们还可以使用NS_OP...

2016-02-20 10:57:00 200

转载 iOS9中通过UIStackView实现类似大众点评中的效果图

效果图如下:实现思路整体可以看做为一个大的UIStackView(排列方式水平)包括一个子UIStackView(排列方式垂直),其中左边包括一个图片,右边的UIStackView中可以看做包括三个小控件,其中一个imageView控件,两个label控件实现代码如下(供参考)://// ViewController.m// UIStackView//// Cre...

2016-01-29 20:50:00 176

转载 iOS中忽略NSLog打印信息(通过PCH文件中定义DEBUG宏解决)

iOS中忽略NSLog打印信息解决办法:1.新建PrefixHeader_pch文件,在该文件中定义一下宏//通过DEBUG宏的定义来解决Debug状态下和Release状态下的输出#ifdef DEBUG#define NSLog(...) NSLog(__VA_ARGS__)#else#define NSLog(...)#endif /* PrefixHeader_...

2016-01-07 09:30:00 138

转载 Property type 'id<tabBarDelegate>' is incompatible with type 'id<UITabBarDelegate> _Nullable' inheri...

iOS报错:Property type 'id' is incompatible with type 'id _Nullable' inherited from 'UITabBar'如图:可能原因:由于自定义tabBar,没有继承系统UITabBarDelegate造成的解决办法:第一步:第二步:转载于:https://www.cnblogs.com/Jmailbo...

2016-01-07 09:29:00 338

转载 iOS中使用图片作为颜色的背景图

Objective-C: [UIColor colorWithPatternImage:[UIImage imageNamed:@"jpg"]];Swift: UIColor(patterImage: UIImage(named: "jpg")!)转载于:https://www.cnblogs.com/Jmailbox/p/5073468.html...

2015-12-24 16:18:00 438

转载 真机测试,Xcode报错:process launch failed: Security

解决办法:手机->通用->设备管理->信任开发商应用即可转载于:https://www.cnblogs.com/Jmailbox/p/5073183.html

2015-12-24 15:17:00 136

转载 The account '' has no team with ID ''

Xcode 升级到7.2 版本,真机测试的时候报错:The account '' has no team with ID ''解决办法1:http://stackoverflow.com/questions/33290452/the-account-has-no-team-with-id-coincides-with-new-ios-dev-license解决办法2:换一个Apple...

2015-12-24 15:01:00 129

转载 解决iOS中tabBarItem图片默认颜色的问题(指定代码渲染模式为以原样模式的方式显示出来)...

解决iOS中tabBarItem图片默认颜色的问题(指定代码渲染模式为以原样模式的方式显示出来)解决办法:指定图片的渲染模式(imageWithRenderingMode为:UIImageRenderingModeAlwaysOriginal模式)代码示例://image childController.tabBarItem.image = [[UIImage imageName...

2015-12-21 15:02:00 255

转载 解决iOS中 tabBarItem设置图片(image+title切图在一起)时造成的图片向上偏移

解决iOS中 tabBarItem设置图片(image+title切图在一起)时造成的图片向上偏移解决办法1:设置tabBarItem的imageInsets属性代码示例:childController.tabBarItem.imageInsets = UIEdgeInsetsMake(5, 0, 5, 0);转载于:https://www.cnblogs.com/Jmail...

2015-12-21 14:55:00 357

转载 iOS 中实现随机颜色

开发中为了测试能够快速看到效果很多时候我们对颜色采用随机颜色 代码块如下 UIColor * randomColor= [UIColor colorWithRed:((float)arc4random_uniform(256) / 255.0) green:((float)arc4random_uniform(256) / 255.0) blue:((float)arc4random_...

2015-12-01 20:25:00 265

转载 reason: 'Could not instantiate class named MKMapView'

详细原因:拖入MapView直接运行,结果报错解决:在Xcode导入MapKit.framework既可转载于:https://www.cnblogs.com/Jmailbox/p/5005149.html

2015-11-29 18:28:00 105

转载 iOS 9 地图定位崩溃 n: 'Invalid parameter not satisfying: !stayUp || CLClientIsBackgroundable(internal->fCl...

报错详情:*** Assertion failure in -[CLLocationManager setAllowsBackgroundLocationUpdates:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreLocationFramework_Sim/CoreLocation-1861.0.15/Framewor...

2015-11-29 16:34:00 531

转载 iOS中你必须了解的多线程

多线程概念详解什么是进程?简单的说进程就是我们电脑上运行的一个个应用程序,每一个程序就是一个进程,并且每个进程之间是独立的,每个进程运行在其专用受保护的内存空间内(window系统可以通过任务管理器进行查看,Mac系统中可以通过活动监视器对其进行查看)什么是线程?通过上面的介绍我们知道了什么是进程,那么如何让进程运行起来,这个时候就要有线程了,也就是说每个应用程序想要跑起来...

2015-11-28 11:13:00 121

转载 报错: App Transport Security has blocked a cleartext HTTP (http://) resource load since it is ins

环境:Xcode7.1.1 + iOS9.1详细错误:App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist fil...

2015-11-27 15:23:00 125

转载 报错:/BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.29.5/UITableView.m:7943解决方法...

环境:Xcode7.1.1详细错误:*** Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.29.5/UITableView.m:7943这个...

2015-11-27 14:45:00 577

转载 AFNetworking使用详解

导语:众所周知,AFNetworking是目前IOS开发中非常受欢迎的第三方网络通信类库,同时AFNetworking对苹果官方NSURLConnection和NSURLSession进行了封装,使用起来可以说是简单的"令人发指".官网地址:点击这里可以下载AFNetworking点击这里可以下载我的全部DemoAFNetworking有关请求与响应的信息 请求:(序列化...

2015-11-25 14:30:00 127

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除