iOS的CocoaPods手动挡到自动导入第三方框架

摘要: CocoaPods使用 当你开发iOS应用时,会经常使用到很多第三方开源类库,比如JSONKit,AFNetWorking等等。可能某个类库又用到其他类库,所以要 使用它,必须得另外下载其他类库,而其他类库又用到其他类库,“子子孙孙无穷尽也”,这也许是比较特殊的情况。总之小编的意思就是,手动一个个去 阅读全文
posted @ 2016-04-05 16:20 liumu1994 阅读(203) 评论(0) 推荐(0) 编辑

iOS 五种传值方式

摘要: 1.属性传值和代理传值 2.代码块传值 3.单列传值 4.通知传值 阅读全文
posted @ 2016-03-31 22:15 liumu1994 阅读(256) 评论(0) 推荐(0) 编辑

UINavigationController改变UINavigationBar导航条标题颜色跟字体

摘要: UINavigationController改变UINavigationBar导航条标题颜色跟字体 UINavigationController改变UINavigationBar导航条标题颜色和字体 iOS 5 以后 UINavigationController 可以 改变UINavigationB 阅读全文
posted @ 2016-03-30 23:22 liumu1994 阅读(239) 评论(0) 推荐(0) 编辑

iOS GDataXMLNode的配置步骤

摘要: 1.导入GDataXMLNode包 2.导入包后 ,找到工程文件,标题栏点击Build Settings ,然后点击搜索,搜索Header Search Paths 找到这一栏后 点击第二个空白的地方,把它修改成/usr/include/libxml2,修改后如图所示: 3.修改上面后 ,继续搜索 阅读全文
posted @ 2016-03-29 22:19 liumu1994 阅读(135) 评论(0) 推荐(0) 编辑

iOS UICollectionView 的简单显示

摘要: #import <UIKit/UIKit.h> @interface ViewController : UIViewController<UICollectionViewDataSource,UICollectionViewDelegate> @property (nonatomic ,strong 阅读全文
posted @ 2016-03-28 22:53 liumu1994 阅读(211) 评论(0) 推荐(0) 编辑

iOS UIXMLParser 解析数据

摘要: #import <UIKit/UIKit.h> #import "SecondViewController.h" //导入UItableview 代理方法 @interface ViewController : UIViewController<UITableViewDataSource,UITab 阅读全文
posted @ 2016-03-25 21:00 liumu1994 阅读(215) 评论(0) 推荐(0) 编辑

iOS UILabel 自适应文字的大小

摘要: //初始化label UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0,0,0,0)]; //设置自动行数与字符换行 [label setNumberOfLines:0]; //设置线的风格 label.lineBreakMod 阅读全文
posted @ 2016-03-24 22:20 liumu1994 阅读(1357) 评论(1) 推荐(0) 编辑

数据库基本语句大全

摘要: 主外键 create table class ( cid integer primary key autoincrement, cname varchar(20) ) create table student ( stuid integer primary key autoincrement, st 阅读全文
posted @ 2016-03-23 22:11 liumu1994 阅读(243) 评论(0) 推荐(0) 编辑

UIWebView显示网页

摘要: #import "ViewController.h" #import "MBProgressHUD.h" @interface ViewController ()<UIWebViewDelegate> { MBProgressHUD *HUD; } @end @implementation View 阅读全文
posted @ 2016-03-22 22:46 liumu1994 阅读(722) 评论(0) 推荐(0) 编辑

自定义类的归档解挡操作

摘要: 1.我们自己创建一个Student类,它里面有三个属性,并遵循了<NSCoding>协议 #import <Foundation/Foundation.h> @interface Student : NSObject<NSCoding> @property (nonatomic ,strong) N 阅读全文
posted @ 2016-03-21 21:54 liumu1994 阅读(175) 评论(0) 推荐(0) 编辑