摘要: MJRefresh类结构图图中红色文字的类:可以直接拿来用下拉刷新控件的种类默认(Normal):MJRefreshNormalHeader动图(Gif):MJRefreshGifHeader上拉刷新控件的种类自动刷新(Auto)默认(Normal):MJRefreshAutoNormalFoote... 阅读全文
posted @ 2015-09-23 20:53 crushing 阅读(6153) 评论(0) 推荐(0) 编辑
摘要: 1.导入到自己的工程中,如果是非ACR,则需要-fno-objc-arc,如果是arc就不用管了。一般的刷新都是基于UIScrollView的,因为能拖拽的view一般都是继承于UIScrollView。2.#import “MJRefresh.h” 这个可以直接加载.m中然后.h文件中:1 #i... 阅读全文
posted @ 2015-09-23 20:48 crushing 阅读(376) 评论(0) 推荐(0) 编辑
摘要: //使用苹果原生地图#import "RootViewController.h"#import @interface RootViewController (){ //声明地图视图 MKMapView *mapview; //供定位使用的对象 CLLocationManager *manager;}... 阅读全文
posted @ 2015-09-22 20:46 crushing 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 1 NSDate *senddate=[NSDate date];2 NSDateFormatter *dateformatter=[[NSDateFormatter alloc] init];3 [dateformatter setDateFormat:@"YYYYMMddHHm... 阅读全文
posted @ 2015-09-19 17:06 crushing 阅读(716) 评论(0) 推荐(0) 编辑
摘要: 简述:Cocoa框架中的NSPredicate用于查询,原理和用法都类似于SQL中的where,作用相当于数据库的过滤取。定义(最常用到的方法):[cpp] view plaincopyNSPredicate*ca=[NSPredicatepredicateWithFormat:(NSString*... 阅读全文
posted @ 2015-09-19 16:22 crushing 阅读(141) 评论(0) 推荐(0) 编辑
摘要: iOS中UISearchDisplayController用于搜索,搜索栏的重要性我们就不说了,狼厂就是靠搜索起家的,现在越来越像一匹没有节操的狼,UC浏览器搜 索栏现在默认自家的神马搜索,现在不管是社交,O2O还是在线教育等都会有一个搜索栏的实现,不过彼此实现效果是不一样的。iOS中的搜索栏实现起... 阅读全文
posted @ 2015-09-19 16:05 crushing 阅读(784) 评论(0) 推荐(0) 编辑
摘要: 使用iOS SDK中的HTTP网络请求API,相当的复杂,调用很繁琐,ASIHTTPRequest就是一个对CFNetwork API进行了封装,并且使用起来非常简单的一套API,用Objective-C编写,可以很好的应用在Mac OS X系统和iOS平台的应用程序中。ASIHTTPRequest... 阅读全文
posted @ 2015-09-19 10:23 crushing 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 抽屉效果,页面灵活漂亮并且节省空间。在根视图的h文件: 1 #import 2 //实现抽屉效果 3 //由于手机屏幕较小,内容较多,有效利用空间 。 4 @interface RootViewController : UIViewController 5 { 6 UITableView ... 阅读全文
posted @ 2015-09-18 20:58 crushing 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 分割器目前只支持iPhone6 plus、pad和刚发布的iPhone6s plus。建立左右两个view。在根视图中: 1 #import "AppDelegate.h" 2 #import "LeftViewController.h" 3 #import "RightViewController... 阅读全文
posted @ 2015-09-18 20:54 crushing 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1 #import "RootViewController.h" 2 #import 3 #import //存放了系统调用的常量 4 @interface RootViewController () 5 6 @end 7 8 @implementation RootViewControl... 阅读全文
posted @ 2015-09-18 20:39 crushing 阅读(209) 评论(0) 推荐(0) 编辑