摘要: 滚视图的用途很普遍,掌握一些基本用法是必须的,以下是一些基本的用法: #import <UIKit/UIKit.h> //宏定义 #define Width 300 #define Height 300 #define X 60 #define Y 100 @interface ViewContro 阅读全文
posted @ 2016-04-05 22:23 唐唐_010 阅读(202) 评论(0) 推荐(0) 编辑
摘要: CocoaPods使用 当你开发iOS应用时,会经常使用到很多第三方开源类库,比如JSONKit,AFNetWorking等等。可能某个类库又用到其他类库,所以要 使用它,必须得另外下载其他类库,而其他类库又用到其他类库,“子子孙孙无穷尽也”,这也许是比较特殊的情况。总之小编的意思就是,手动一个个去 阅读全文
posted @ 2016-04-05 21:58 唐唐_010 阅读(241) 评论(0) 推荐(0) 编辑
摘要: // 实例化对象的头文件 @property (nonatomic, strong)NSString *name;@property (nonatomic, assign)NSString *sex;@property (nonatomic, assign)NSInteger tel;@proper 阅读全文
posted @ 2016-03-31 22:11 唐唐_010 阅读(163) 评论(0) 推荐(0) 编辑
摘要: #import <Foundation/Foundation.h> @interface Student : NSObject @property(strong,nonatomic) NSString *name; @property(strong,nonatomic) NSString *pic; 阅读全文
posted @ 2016-03-30 22:50 唐唐_010 阅读(1139) 评论(0) 推荐(0) 编辑
摘要: <?php/** * Created by PhpStorm. * User: tmf119 * Date: 16/3/29 * Time: 上午11:01 *///echo('test');//输出语句//定义变量 $$name='lisi';$age=23;//换行'<br>//echo('na 阅读全文
posted @ 2016-03-29 20:34 唐唐_010 阅读(318) 评论(0) 推荐(0) 编辑
摘要: #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property(strong,nonatomic) UILabel *lblNums; @end #import "ViewController.h" @in 阅读全文
posted @ 2016-03-28 20:51 唐唐_010 阅读(363) 评论(0) 推荐(0) 编辑
摘要: XML 文档解析 使用的五个代理方法1.文档解析开始 parserDidStartDocument:2.文档解析结束 parserDidEndDocument:3.文档 解析元素 开始 didStartElement:4.文档 解析元素 结束 didEndElement:5.解析 文档元素 的内容 parser foundCharacters: #import @interface View... 阅读全文
posted @ 2016-03-28 20:38 唐唐_010 阅读(238) 评论(0) 推荐(0) 编辑
摘要: iOS xml文件的解析方式 XMLDictionary,GDataXMLNode,NSXMLParser iOS9之后,默认网络请求是https,所有我们要设置一下网络安全,具体设置如下 1.第三方类库 XMLDictionary 下载地址: https://github.com/nicklockwood/XMLDictionary 所用到的xml文件 http://www.... 阅读全文
posted @ 2016-03-25 22:38 唐唐_010 阅读(614) 评论(0) 推荐(0) 编辑
摘要: 对于目前版本的系统的网络请求 网上很多东西都比较乱,现整理NSURLSession 的基本用法。 //1.获取文件访问的路径 接口 NSString *path=@"http://1.studyios.sinaapp.com/getAllClass.php"; //2.封装 URL NSURL *u 阅读全文
posted @ 2016-03-24 16:00 唐唐_010 阅读(175) 评论(0) 推荐(0) 编辑
摘要: #import "AppDelegate.h" #include "RootTableViewController.h" @interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOpti... 阅读全文
posted @ 2016-03-23 22:12 唐唐_010 阅读(438) 评论(0) 推荐(0) 编辑