自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (11)
  • 收藏
  • 关注

原创 和距离topCapHeight后的1横排像素。

(UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight 这个函数是UIImage的一个实例函数,它的功能是创建一个内容可拉伸,而边角不拉伸的图片,需要两个参数,第一个是左边不拉伸区域的宽度,第二个参数是上面不拉伸的高度。根据设置的宽度和高度,将接下

2017-08-20 23:04:09 216

转载 项目中曾经遇到过的问题整理

分类UILabel标签控件UISearchBar搜索条UIAlertController警告框UIPickerView选择器UITableView表视图控件UICollectionView集合视图UIWebView或WKWebView网页视图XIB布局Common待分类第三方UILabel标签控件文字显示异常(AttributedTitle副

2017-08-17 22:28:36 799

转载 获取工程中window上面的RootViewController

你一般怎么获取工程中window上面的RootViewController第一种方法: UIWindow *window = [UIApplication sharedApplication].keyWindow; UIViewController *rootViewController = window.rootViewController;第二种方法: AppDel

2017-08-17 22:23:56 358

转载 iOS运行报错,主要跟线程有关

iOS app运行时报错:This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.

2017-08-17 22:16:57 2036

原创 iOS指定页面屏幕旋转

在网上找了好久,大多数都是一样的使用起来没有效果,后来发现这个方法,确实好使。首先在target中设置在AppDelegate.m中- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{

2017-07-22 09:46:40 280

转载 聊天文字在气泡背景图片上的展示

- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight 这个函数是UIImage的一个实例函数,它的功能是创建一个内容可拉伸,而边角不拉伸的图片,需要两个参数,第一个是左边不拉伸区域的宽度,第二个参数是上面不拉伸的高度。根据设

2017-06-21 22:48:40 5113

转载 iOS制作聊天气泡

现在几乎所有的社交类APP都会需要做气泡聊天界面,而对于没有做过的同学来说还是有一定难度的。那么这篇博文就是记录一下我自己在实现过程遇到一些问题和解决办法。先来几张截图给大家看看最终的结果:这是一般状态IMG_3029.PNG这是长按弹出菜单状态IMG_3030.PNG这是编辑模式IMG_3031.

2017-06-21 22:42:47 709

转载 CGContextAddArcToPoint和CGContextAddArc的绘图使用

比较难的是CGContextAddArcToPoint  代码如下:[plain] view plain copyCGContextRef context=UIGraphicsGetCurrentContext();  CGContextSetRGBStrokeColor(context,1,0,0,1);  CGContextMov

2017-06-21 22:34:19 254

原创 在 UITableView的底部插入新的cell

//添加cell到tableView中   NSIndexPath * newIndexPath = [NSIndexPathindexPathForRow:self.historyArr.count-1inSection:0];    [self.chatTableViewbeginUpdates];    [self.chatTableViewinsertR

2017-06-21 22:11:03 1706

原创 使用block遇到的问题

在写代码的时候用到了block:/** *  点击发送后要发送的文本 */@property (nonatomic,copy)void(^sendContent)(NSObject *content);在调用的时候需要在block里面刷新tableView,但是发现视图层显示的cell存在问题,cell的数据显示为进入重用池之前cell的数据,后来经过修改:se

2017-06-21 21:40:42 829

转载 IOS中UITableView滚动到指定位置_IOS

方法很简单:- (void)scrollToRowAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UITableViewScrollPosition)scrollPosition animated:(BOOL)animated有些需要注意的地方:如果在reloadData后需要立即获取tableview的ce

2017-06-21 21:18:43 2024

ios14.0-14.1-14.2-14.3-14.4-14.5-14.6.zip

iOS 14.0-14.1-14.2-14.3-14.4-14.5-14.6 真机调试包,直接下载后解包,然后拷贝想要的文件粘贴到: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport,然后重新启动xcode就行了。

2021-07-05

ios14.0-14.1-14.2-14.3-14.4真机调试包

iOS 14.0-14.1-14.2-14.3-14.4 真机调试包,直接下载后解包,然后拷贝粘贴到: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport,然后重新启动xcode就行了。

2021-03-11

iOS14.0、14.1、14.2真机调试包.zip

iOS 14.0、14.1、14.2 真机调试包,直接下载后解包,然后拷贝粘贴到: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport,然后重新启动xcode就行了。

2020-11-17

iOS14.2真机调试包.zip

iOS 14.2 真机调试包,直接下载后解包,然后拷贝粘贴到: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport,然后重新启动xcode就行了。

2020-11-17

iOS14.0真机调试包.zip

iOS 14.0 真机调试包,直接下载后解包,然后拷贝粘贴到: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport,然后重新启动xcode就行了。

2020-11-17

iOS13.2.0.zip

iOS 13.2 真机调试包,不需要更新xcode,直接下载后解包,然后拷贝粘贴到: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport,然后重新启动xcode就行了。

2019-11-27

12.4 (16G73).zip

iOS 12.4 真机调试包,不需要更新xcode,直接下载后解包,然后拷贝粘贴到: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport,然后重新启动xcode就行了。

2019-08-12

xcode 12.2sdk真机调试包

iOS 12.2 真机调试包,不需要更新xcode,直接下载后解包,然后拷贝粘贴到: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport,然后重新启动xcode就行了。

2019-04-24

xcode 12.1 (16B92)sdk配置资源包

xcode添加路径,将下载好的iOS 12.1文件解压复制: /applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 文件夹下,然后直接运行xcode就可以了

2018-12-05

xcode 11.4sdk配置资源包

xcode添加路径,将下载好的iOS 11.4文件解压复制: /applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 文件夹下,然后直接运行xcode就可以了

2018-07-19

xcode ios11.3sdk配置资源包下载

xcode添加路径,将下载好的iOS 11.3文件解压复制: /applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 文件夹下,然后直接运行xcode就可以了

2018-05-02

空空如也

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

TA关注的人

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