<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[DemoFootMan的博客]]></title><description><![CDATA[喝最烈的酒，开最快的车。]]></description><link>https://blog.youkuaiyun.com/DemoFootMan</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; DemoFootMan]]></copyright><item><title><![CDATA[多层字典转模型]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/54092003</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/54092003</guid><author>DemoFootMan</author><pubDate>Thu, 05 Jan 2017 12:43:20 +0800</pubDate><description><![CDATA[// 使用到的三方MJExtension,AFN 
//json数据解析完后是一个个数组套字典的东东，现在的业务需求是在原有的模型下，增加个模型，就是再往下解析一层，之前没有想到用2个模型来处理（具体是1个模型处理好还是分为2个模型处理好，自己把握）。 
//下面直接上代码（新手小白，代码还有很多不规范的地方，见谅，只作为学习笔记）//2个模型channelModel 和 adsModel ,请求的]]></description><category></category></item><item><title><![CDATA[ios 生成的二维码模糊不清]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53887576</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53887576</guid><author>DemoFootMan</author><pubDate>Mon, 26 Dec 2016 17:01:48 +0800</pubDate><description><![CDATA[//二维码的生成，按套路写的。生成后发现模糊不清，虽然能扫出来～但是难看 
//无他，问度娘，写个方法将图片转一下，ok，直接上代码 
//1.生成 
  //1. 创建一个二维码种类的路径   CIFilter *filter = [CIFilter filterWithName:@"CIQRCodeGenerator"];
    //2.恢复滤镜的默认设置
    [filter setDef]]></description><category></category></item><item><title><![CDATA[tabBar隐藏顶端分割线]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53887359</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53887359</guid><author>DemoFootMan</author><pubDate>Mon, 26 Dec 2016 16:42:06 +0800</pubDate><description><![CDATA[//直接上代码CGRect rect = CGRectMake(0,0, self.view.frame.size.width,self.view.frame.size.height);    UIGraphicsBeginImageContext(rect.size);    CGContextRef context =UIGraphicsGetCurrentContext();    CGCon]]></description><category></category></item><item><title><![CDATA[ios程序启动原理]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53705141</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53705141</guid><author>DemoFootMan</author><pubDate>Sat, 17 Dec 2016 10:46:11 +0800</pubDate><description><![CDATA[//有涨流程图，可以看到程序的生命周期。如下]]></description><category></category></item><item><title><![CDATA[[UIApplication sharedApplication].keyWindow与[UIApplication sharedApplication].delegate.window];;]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53705122</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53705122</guid><author>DemoFootMan</author><pubDate>Sat, 17 Dec 2016 10:43:45 +0800</pubDate><description><![CDATA[前者会被UIActionSheet 影响，只要在任何一个地方弹出过actionSheet，页面就死掉不能继续操作.]]></description><category></category></item><item><title><![CDATA[UILabel根据内容获取宽高]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53606466</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53606466</guid><author>DemoFootMan</author><pubDate>Tue, 13 Dec 2016 09:44:05 +0800</pubDate><description><![CDATA[.h中//******************************************************************************************************************************************************************************import + (CGFloat)getW]]></description><category></category></item><item><title><![CDATA[文章标题]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53606420</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53606420</guid><author>DemoFootMan</author><pubDate>Tue, 13 Dec 2016 09:40:36 +0800</pubDate><description><![CDATA[.himport - (void) setLeftAndRightTextWithImage:(UIImage *)image withTitle:(NSString *)title forState:(UIControlState)stateType withTextFont:(float)textFont;/**
左边文字，右边图片*
@param image      Picture
@par]]></description><category></category></item><item><title><![CDATA[16进制转UIColor]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53606395</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53606395</guid><author>DemoFootMan</author><pubDate>Tue, 13 Dec 2016 09:38:01 +0800</pubDate><description><![CDATA[h中@interface UIColor (Hex)
  
  (UIColor )colorWithHexString:(NSString )stringToConvert;
  
@end 
.m中import “UIColor+Hex.h”//定义并实现类方法define DEFAULT_VOID_COLOR [UIColor whiteColor]@implementation UIColo]]></description><category></category></item><item><title><![CDATA[XCode 后台答应汉字不正常]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53606342</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53606342</guid><author>DemoFootMan</author><pubDate>Tue, 13 Dec 2016 09:32:41 +0800</pubDate><description><![CDATA[.h中import import “NSArray+Log.h”@implementation NSArray (Log)
(NSString *)descriptionWithLocale:(id)locale
{NSMutableString *strM = [NSMutableStringstringWithString:@"(\n"];[selfenumerateObjectsUsingBl]]></description><category></category></item><item><title><![CDATA[对Warning: Attempt to present on whose view is not in the window hierarchy!的解决方案]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53513634</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53513634</guid><author>DemoFootMan</author><pubDate>Thu, 08 Dec 2016 09:30:54 +0800</pubDate><description><![CDATA[// 
当我想从一个VC跳转到另一个VC的时候，一般会用 
- (void)presentViewController:(UIViewController *)viewControllerToPresent animated: (BOOL)flag completion:(void (^)(void))completion;当然也可以用导航push。 
可是昨天就遇到了题目中的warning，在st]]></description><category></category></item><item><title><![CDATA[GCD 单列]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53513358</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53513358</guid><author>DemoFootMan</author><pubDate>Thu, 08 Dec 2016 09:07:50 +0800</pubDate><description><![CDATA[static dispatch_once_t onceToken;  
    dispatch_once(&onceToken, ^{   //onceToken是GCD用来记录是否执行过 ，如果已经执行过就不再执行(保证执行一次）  
       NSLog(@"...");
    });  
    return _instace;   
    }]]></description><category></category></item><item><title><![CDATA[IOS--错误集锦--reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter']]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53485984</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53485984</guid><author>DemoFootMan</author><pubDate>Tue, 06 Dec 2016 13:37:04 +0800</pubDate><description><![CDATA[//报错如下 
-[NSURL initFileURLWithPath:]: nil string parameter’  （文件路径是个空字符串） 
//解决方法]]></description><category></category></item><item><title><![CDATA[URL Schemes 打开app]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53454789</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53454789</guid><author>DemoFootMan</author><pubDate>Sun, 04 Dec 2016 16:17:41 +0800</pubDate><description><![CDATA[/* 
*学习笔记，微信分享打开分享链接中的“打开app”url，用微信浏览器无法直接打开，需要用苹果自带的浏览器打开。除了使用URL Schemes 打开外，还有一种ios9.0之外的方法（暂未成功），下面介绍 
*///1,在info里设置自己app的Scheme 
//2,在appDelegate.m//友盟系统回调方法
//ios 9.0以下
#pragma mark --
- (BOOL)]]></description><category></category></item><item><title><![CDATA[//IOS 隐藏导航栏下面黑色分割线]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53424698</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53424698</guid><author>DemoFootMan</author><pubDate>Thu, 01 Dec 2016 18:12:44 +0800</pubDate><description><![CDATA[欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来，用它写博客，将会带来全新的体验哦：
Markdown和扩展Markdown简洁的语法
代码块高亮
图片链接和图片上传
LaTex数学公式
UML序列图和流程图
离线写博客
导入导出Markdown文件
丰富的快捷键
快捷键
加粗    Ctrl + B 
斜体    Ctrl + I 
引用    Ctrl]]></description><category></category></item><item><title><![CDATA[Xcode8创建CoreData托管对象文件，编译报错]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53404723</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53404723</guid><author>DemoFootMan</author><pubDate>Wed, 30 Nov 2016 10:37:33 +0800</pubDate><description><![CDATA[//小白这两天在学coredata，来一步步入坑吧

//创建托管对象文件这里就不说了，是通过xcode---Editor--CreatCoreData NSManagerObject...(在创建实体表的时候在属性栏最下方有个语言选择，系统默认是swift，改成oc)，


 创建完这些文件后，编译会报错,错误和解决办法如下








/************]]></description><category></category></item><item><title><![CDATA[xcode8升级，后台总打印一些乱七八糟的东西]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53283471</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53283471</guid><author>DemoFootMan</author><pubDate>Tue, 22 Nov 2016 11:11:15 +0800</pubDate><description><![CDATA[//之前网上有很多屏蔽的办法，试了下，还是弄不掉那些乱七八糟的东西，再仔细看了下，发现应该是自己单词字母拼写错误了。。。。
//消除方法如下


去除方法：

Xcode8--->Product---- Edit Scheme... -> Run -> Arguments, 在Environment Variables里边添加 OS_ACTIVITY_MODE ＝ disable
]]></description><category></category></item><item><title><![CDATA[9宫格实现微信朋友圈图片点击放大缩小弹簧效果]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53168155</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53168155</guid><author>DemoFootMan</author><pubDate>Tue, 15 Nov 2016 10:01:23 +0800</pubDate><description><![CDATA[//之前写Demo要实现点击scrollView中图片的放大缩小的效果，用了scrollView自带的viewForZoomingInScrollView方法，效果不明显，后来改用点击图片，切换控制器，但是就有明显的push和pop痕迹（以上2种都需要给图片添加tap手势），还是不理想，最后在网上看到个类似微信朋友圈的demo，可以点击图片，放大缩小，并可以添加手势。
//用到的3方为"SDPh]]></description><category></category></item><item><title><![CDATA[UIButton加视图/文字]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53151548</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53151548</guid><author>DemoFootMan</author><pubDate>Sun, 13 Nov 2016 20:42:18 +0800</pubDate><description><![CDATA[.h


#import 




@interface UIButton (UIButtonImageWithLable)

/**

 *  上面图片，底部文字 button

 *

 *  @param image     Picture

 *  @param title     Title Text

 *  @param stateType U]]></description><category></category></item><item><title><![CDATA[16进制 转RGB颜色]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53151535</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53151535</guid><author>DemoFootMan</author><pubDate>Sun, 13 Nov 2016 20:38:47 +0800</pubDate><description><![CDATA[.h中


@interface UIColor (Hex)

+ (UIColor *)colorWithHexString:(NSString *)stringToConvert;

@end
.m中


#import "UIColor+Hex.h"

//定义并实现类方法




#define DEFAULT_VOID_COLOR [UIColor w]]></description><category></category></item><item><title><![CDATA[.语法获取view的x,y宽高]]></title><link>https://blog.youkuaiyun.com/DemoFootMan/article/details/53151488</link><guid>https://blog.youkuaiyun.com/DemoFootMan/article/details/53151488</guid><author>DemoFootMan</author><pubDate>Sun, 13 Nov 2016 20:34:32 +0800</pubDate><description><![CDATA[#import 

//.h 

@interface UIView (Extension)




@property(nonatomic,assign)CGFloat
 x;

@property(nonatomic,assign)CGFloat
 y;

@property(nonatomic,assign)CGFloat
 centerX;

@prop]]></description><category></category></item></channel></rss>