<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[The_WayHome的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/The_WayHome</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; The_WayHome]]></copyright><item><title><![CDATA[推送]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51889794</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51889794</guid><author>The_WayHome</author><pubDate>Tue, 12 Jul 2016 15:56:28 +0800</pubDate><description><![CDATA[//推送

    if ([applicationrespondsToSelector:@selector(isRegisteredForRemoteNotifications)])

    {

        //IOS8

        //创建UIUserNotificationSettings，并设置消息的显示类类型

        UIUserNotific]]></description><category></category></item><item><title><![CDATA[自定义navigationControllerleftBar的ButtonItem导致系统不支持右滑返回解决办法]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51889785</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51889785</guid><author>The_WayHome</author><pubDate>Tue, 12 Jul 2016 15:55:52 +0800</pubDate><description><![CDATA[在父类或者需要支持侧滑的的页面，遵守UIGestureRecognizerDelegate，viewDidLoad中，self.navigationController.interactivePopGestureRecognizer.delegate = self;  这样即可解决自定义UIViewController左上角返回按钮后侧滑不可用。]]></description><category></category></item><item><title><![CDATA[获取ip]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51889777</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51889777</guid><author>The_WayHome</author><pubDate>Tue, 12 Jul 2016 15:55:09 +0800</pubDate><description><![CDATA[- (NSString *)getDeviceIPIpAddresses

{

    

    int sockfd = socket(AF_INET, SOCK_DGRAM, 0);

    

    if (sockfd 

    

    NSMutableArray *ips = [NSMutableArrayarray];

    

]]></description><category></category></item><item><title><![CDATA[TextView加载带有html标签的字符串]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51889734</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51889734</guid><author>The_WayHome</author><pubDate>Tue, 12 Jul 2016 15:51:16 +0800</pubDate><description><![CDATA[UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(50, 100, 260, 200)];

NSString *param = @"

This is
a para
graph with line breaks
";

NSAttributedString *attributedString ]]></description><category></category></item><item><title><![CDATA[iOS如果给UITapGestureRecognizer添加tap值]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51889724</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51889724</guid><author>The_WayHome</author><pubDate>Tue, 12 Jul 2016 15:50:20 +0800</pubDate><description><![CDATA[如果直接给UITapGestureRecognizer.view.tag赋值，我们再对应方法里面取不到这个值。

​手势加到A视图上，我们设置A视图的tag，则我们可以再点击方法里面使用tag.view.tag来获取这个值，一个手势只可以加到一个视图上面，不可以加到2个上面。]]></description><category></category></item><item><title><![CDATA[动态向cell中添加控件，cell复用问题]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51889709</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51889709</guid><author>The_WayHome</author><pubDate>Tue, 12 Jul 2016 15:49:25 +0800</pubDate><description><![CDATA[如果我们需要动态的向cell中添加控件，我们需要把要添加的控件暴露出来，再返回cell的代理方法里面  调用[cell.控件 removeFromSubView];

如果不调用​一定会出现cell内容间相互覆盖的问题。]]></description><category></category></item><item><title><![CDATA[实现动态搜索结果集，支持中文输入的中间状态]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51889698</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51889698</guid><author>The_WayHome</author><pubDate>Tue, 12 Jul 2016 15:48:33 +0800</pubDate><description><![CDATA[NSString *lang = [[UIApplicationsharedApplication]textInputMode].primaryLanguage;

    if ([lang isEqualToString:@"zh-Hans"])//如果是中文,判断是否是输入状态

    {

        UITextRange *selectedRange = [self.]]></description><category></category></item><item><title><![CDATA[兼容iOS7上架AppStore需要的图标]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51889685</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51889685</guid><author>The_WayHome</author><pubDate>Tue, 12 Jul 2016 15:47:29 +0800</pubDate><description><![CDATA[1、一张1024*1024图标用于上传AppStore，再AppStore中显示

2、启动图使用​launchImage，如果不支持横屏，需要设置4张图片，尺寸分别为3.5、4.0、4.7、5.5。

3、显示再手机上的应用图标大小 

      Soptlight-iOS5,6 /Settings-iOS5-9 : 58*58+87*87,​

      iphone Sp]]></description><category></category></item><item><title><![CDATA[iOS上架时微信登陆与分享相关]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51889675</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51889675</guid><author>The_WayHome</author><pubDate>Tue, 12 Jul 2016 15:46:48 +0800</pubDate><description><![CDATA[1、微信登陆：如果用户未安装微信客户端，微信会自动跳转至手机号授权登陆。

2、分享：如果用户​未安装微信客户端，则必须隐藏掉按钮，否则上架肯定会被拒绝。]]></description><category></category></item><item><title><![CDATA[防攻击进行sha加密]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51889657</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51889657</guid><author>The_WayHome</author><pubDate>Tue, 12 Jul 2016 15:45:04 +0800</pubDate><description><![CDATA[#import 


- (NSString *)getSha1String:(NSString *)srcString{

//注释掉的2行代码，会使data数据有丢失   

// constchar *cstr = [srcString cStringUsingEncoding:NSUTF8StringEncoding];

    //NSData *data = [NS]]></description><category></category></item><item><title><![CDATA[AFNetWorking过滤NSNULL]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51889629</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51889629</guid><author>The_WayHome</author><pubDate>Tue, 12 Jul 2016 15:43:13 +0800</pubDate><description><![CDATA[1、找到AFURLResponseSerialization.m这个文件

2、找到​@implementation AFJSONResponseSerializer

3、找到​init方法

4、self = [superinit];

    if (!self) {

        return nil;

    }

    self.acceptable]]></description><category></category></item><item><title><![CDATA[iOS7-9。获取iOS设备uuid]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51889520</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51889520</guid><author>The_WayHome</author><pubDate>Tue, 12 Jul 2016 15:34:20 +0800</pubDate><description><![CDATA[NSString *uniqid = [[UIDevice
currentDevice].identifierForVendor
UUIDString];
当用户卸载程序重新安装时，设备号会改变，更新手机系统时，也会改变]]></description><category></category></item><item><title><![CDATA[正则匹配字符串中的电话号码]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51887667</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51887667</guid><author>The_WayHome</author><pubDate>Tue, 12 Jul 2016 12:33:37 +0800</pubDate><description><![CDATA[NSString *string =
@"该功能为XXXXX----SVIP用户专享，申请成为XXXX---SVIP用户请拨打热线电话：010-11111111。";






- (NSString *)validePhone:(NSString *)tip

{

    NSString *searchText = tip;

    NSError *erro]]></description><category></category></item><item><title><![CDATA[解决tableView左侧有一小段空缺，…]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51281332</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51281332</guid><author>The_WayHome</author><pubDate>Sat, 09 Apr 2016 13:58:15 +0800</pubDate><description><![CDATA[//解决tableview分割线左边显示不全

-(void)viewDidLayoutSubviews
{

    if
([self.tableView
respondsToSelector:@selector(setSeparatorInset:)])
{

 
     
[self.tableView
setSeparatorInset:UIEdgeInsetsZero];

    ]]></description><category></category></item><item><title><![CDATA[cell延迟显示，效果好像一个一个加…]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51281331</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51281331</guid><author>The_WayHome</author><pubDate>Sat, 09 Apr 2016 13:58:10 +0800</pubDate><description><![CDATA[一个定时器NSTimer 定时执行下面的代码
self.cellIndex=0;


self.timer
=
[NSTimer
scheduledTimerWithTimeInterval:timeAfter
target:self
selector:@selector(addCell)
userInfo:nil
repeats:YES];



#pragma mark ---动态添加cell]]></description><category></category></item><item><title><![CDATA[查找UINavigationController中指定…]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51281329</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51281329</guid><author>The_WayHome</author><pubDate>Sat, 09 Apr 2016 13:58:05 +0800</pubDate><description><![CDATA[查找navigationController推出来的页面中指定的controller

for
(UIViewController
*curVC
in
[self.navigationController
viewControllers])

    {
 
     
if
([curVC isKindOfClass:[目标VC class]])

     
  {

     
      ]]></description><category></category></item><item><title><![CDATA[iOS：textfield切换显隐时发生的问…]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51281328</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51281328</guid><author>The_WayHome</author><pubDate>Sat, 09 Apr 2016 13:58:01 +0800</pubDate><description><![CDATA[问题1:切换显隐时，光标会错位的问题
解决办法1:
NSString *string =
self.passwordTextField.text;  
  //切换内容后 

可以从新定位光标位置

 
     
self.passwordTextField.text
=
@"";

 
  self.passwordTextField.text = string;

解决办法2:

textF]]></description><category></category></item><item><title><![CDATA[去掉空格和回车]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51281327</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51281327</guid><author>The_WayHome</author><pubDate>Sat, 09 Apr 2016 13:57:57 +0800</pubDate><description><![CDATA[去除两端空格
NSString *temp = [textField.text stringByTrimmingCharactersInSet:

[NSCharacterSet whitespaceCharacterSet]];



去除两端空格和回车

NSString *text = [temp stringByTrimmingCharactersInSet:[NSCharacterSet]]></description><category></category></item><item><title><![CDATA[微信相关]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51281326</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51281326</guid><author>The_WayHome</author><pubDate>Sat, 09 Apr 2016 13:57:52 +0800</pubDate><description><![CDATA[错误信息:-canOpenURL:
failed for URL: "weixin://app/wx365933aae5ea1d60/" - error: "This
app is not allowed to query for scheme weixin"

解决办法

LSApplicationQueriesSchemes
    weixin

NSAppTransportSecurity]]></description><category></category></item><item><title><![CDATA[常用宏定义(代码适配，设置颜色，…]]></title><link>https://blog.youkuaiyun.com/The_WayHome/article/details/51281324</link><guid>https://blog.youkuaiyun.com/The_WayHome/article/details/51281324</guid><author>The_WayHome</author><pubDate>Sat, 09 Apr 2016 13:57:48 +0800</pubDate><description><![CDATA[//一句话适配所有屏幕

#define SXRealValue(value) ((value)/375.0f*[UIScreen
mainScreen].bounds.size.width)

#define SYRealValue(value) ((value)/667.0f*[UIScreen
mainScreen].bounds.size.height)



//屏幕宽高

#defin]]></description><category></category></item></channel></rss>