<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[feihu13579的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/feihu13579</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; feihu13579]]></copyright><item><title><![CDATA[和距离topCapHeight后的1横排像素。]]></title><link>https://blog.youkuaiyun.com/feihu13579/article/details/77435552</link><guid>https://blog.youkuaiyun.com/feihu13579/article/details/77435552</guid><author>feihu13579</author><pubDate>Sun, 20 Aug 2017 23:04:09 +0800</pubDate><description><![CDATA[(UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight 这个函数是UIImage的一个实例函数，它的功能是创建一个内容可拉伸，而边角不拉伸的图片，需要两个参数，第一个是左边不拉伸区域的宽度，第二个参数是上面不拉伸的高度。根据设置的宽度和高度，将接下]]></description><category></category></item><item><title><![CDATA[项目中曾经遇到过的问题整理]]></title><link>https://blog.youkuaiyun.com/feihu13579/article/details/77343383</link><guid>https://blog.youkuaiyun.com/feihu13579/article/details/77343383</guid><author>feihu13579</author><pubDate>Thu, 17 Aug 2017 22:28:36 +0800</pubDate><description><![CDATA[分类

UILabel标签控件
UISearchBar搜索条
UIAlertController警告框
UIPickerView选择器
UITableView表视图控件
UICollectionView集合视图
UIWebView或WKWebView网页视图
XIB布局
Common待分类
第三方

UILabel标签控件
文字显示异常（AttributedTitle副]]></description><category></category></item><item><title><![CDATA[获取工程中window上面的RootViewController]]></title><link>https://blog.youkuaiyun.com/feihu13579/article/details/77343105</link><guid>https://blog.youkuaiyun.com/feihu13579/article/details/77343105</guid><author>feihu13579</author><pubDate>Thu, 17 Aug 2017 22:23:56 +0800</pubDate><description><![CDATA[你一般怎么获取工程中window上面的RootViewController
第一种方法：
   UIWindow *window = [UIApplication sharedApplication].keyWindow;
   UIViewController *rootViewController = window.rootViewController;
第二种方法：
  AppDel]]></description><category></category></item><item><title><![CDATA[iOS运行报错，主要跟线程有关]]></title><link>https://blog.youkuaiyun.com/feihu13579/article/details/77342685</link><guid>https://blog.youkuaiyun.com/feihu13579/article/details/77342685</guid><author>feihu13579</author><pubDate>Thu, 17 Aug 2017 22:16:57 +0800</pubDate><description><![CDATA[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.

]]></description><category></category></item><item><title><![CDATA[iOS指定页面屏幕旋转]]></title><link>https://blog.youkuaiyun.com/feihu13579/article/details/75688739</link><guid>https://blog.youkuaiyun.com/feihu13579/article/details/75688739</guid><author>feihu13579</author><pubDate>Sat, 22 Jul 2017 09:46:40 +0800</pubDate><description><![CDATA[在网上找了好久，大多数都是一样的使用起来没有效果，后来发现这个方法，确实好使。
首先在target中设置


在AppDelegate.m中


- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
    ]]></description><category></category></item><item><title><![CDATA[聊天文字在气泡背景图片上的展示]]></title><link>https://blog.youkuaiyun.com/feihu13579/article/details/73556454</link><guid>https://blog.youkuaiyun.com/feihu13579/article/details/73556454</guid><author>feihu13579</author><pubDate>Wed, 21 Jun 2017 22:48:40 +0800</pubDate><description><![CDATA[- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:

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

根据设]]></description><category></category></item><item><title><![CDATA[iOS制作聊天气泡]]></title><link>https://blog.youkuaiyun.com/feihu13579/article/details/73556303</link><guid>https://blog.youkuaiyun.com/feihu13579/article/details/73556303</guid><author>feihu13579</author><pubDate>Wed, 21 Jun 2017 22:42:47 +0800</pubDate><description><![CDATA[现在几乎所有的社交类APP都会需要做气泡聊天界面，而对于没有做过的同学来说还是有一定难度的。那么这篇博文就是记录一下我自己在实现过程遇到一些问题和解决办法。

先来几张截图给大家看看最终的结果：

这是一般状态




IMG_3029.PNG


这是长按弹出菜单状态




IMG_3030.PNG


这是编辑模式




IMG_3031.]]></description><category></category></item><item><title><![CDATA[CGContextAddArcToPoint和CGContextAddArc的绘图使用]]></title><link>https://blog.youkuaiyun.com/feihu13579/article/details/73556246</link><guid>https://blog.youkuaiyun.com/feihu13579/article/details/73556246</guid><author>feihu13579</author><pubDate>Wed, 21 Jun 2017 22:34:19 +0800</pubDate><description><![CDATA[比较难的是CGContextAddArcToPoint  
代码如下：




[plain] view
 plain copy






CGContextRef context=UIGraphicsGetCurrentContext();  
CGContextSetRGBStrokeColor(context,1,0,0,1);  
CGContextMov]]></description><category></category></item><item><title><![CDATA[在 UITableView的底部插入新的cell]]></title><link>https://blog.youkuaiyun.com/feihu13579/article/details/73556082</link><guid>https://blog.youkuaiyun.com/feihu13579/article/details/73556082</guid><author>feihu13579</author><pubDate>Wed, 21 Jun 2017 22:11:03 +0800</pubDate><description><![CDATA[//
添加cell到tableView中
   
NSIndexPath * newIndexPath = [NSIndexPath
indexPathForRow:self.historyArr.count-1
inSection:0];
    [self.chatTableView
beginUpdates];
    [self.chatTableView
insertR]]></description><category></category></item><item><title><![CDATA[使用block遇到的问题]]></title><link>https://blog.youkuaiyun.com/feihu13579/article/details/73555849</link><guid>https://blog.youkuaiyun.com/feihu13579/article/details/73555849</guid><author>feihu13579</author><pubDate>Wed, 21 Jun 2017 21:40:42 +0800</pubDate><description><![CDATA[在写代码的时候用到了block：

/**
 *  点击发送后要发送的文本
 */
@property (nonatomic,copy)void(^sendContent)(NSObject
 *content);
在调用的时候需要在block里面刷新tableView，但是发现视图层显示的cell存在问题，cell的数据显示为进入重用池之前cell的数据，后来经过修改：

se]]></description><category></category></item><item><title><![CDATA[IOS中UITableView滚动到指定位置_IOS]]></title><link>https://blog.youkuaiyun.com/feihu13579/article/details/73555685</link><guid>https://blog.youkuaiyun.com/feihu13579/article/details/73555685</guid><author>feihu13579</author><pubDate>Wed, 21 Jun 2017 21:18:43 +0800</pubDate><description><![CDATA[方法很简单:

- (void)scrollToRowAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UITableViewScrollPosition)scrollPosition animated:(BOOL)animated


有些需要注意的地方:

如果在reloadData后需要立即获取tableview的ce]]></description><category></category></item></channel></rss>