会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
弓林
博客园
首页
新随笔
联系
订阅
管理
2016年2月22日
UIVisualEffectView(自定义模糊视图)
摘要: #import "ViewController.h" @interface ViewController () @property (nonatomic, strong) UIScrollView *scrollView; @end @implementation ViewController -
阅读全文
posted @ 2016-02-22 17:59 弓林
阅读(2029)
评论(0)
推荐(0)
2016年2月21日
CIFilter (模糊图片)
摘要: //使用模糊图片 #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; UIImag
阅读全文
posted @ 2016-02-21 18:47 弓林
阅读(689)
评论(0)
推荐(0)
MKMapView (地图)
摘要: //使用地图 #import "ViewController.h" #import <MapKit/MapKit.h> @interface ViewController ()<MKMapViewDelegate> @end @implementation ViewController - (voi
阅读全文
posted @ 2016-02-21 15:37 弓林
阅读(547)
评论(0)
推荐(0)
2016年2月19日
CoreData
摘要: viewController .m 内部的写法: 1 首先在新建的时候需要勾选 Use Core Data 选项 2 需要创建 coreData 数据 #import "ViewController.h" #import "AppDelegate.h" #import "Student+CoreDa
阅读全文
posted @ 2016-02-19 15:15 弓林
阅读(130)
评论(0)
推荐(0)
2016年2月18日
关于添加类目
摘要: Xcode工程下; 1 command + N 新建 2 选择 Objectiove-C File 3 File: 设置新建的类的名字; File Type:Category(选择) Class:(选择具体要创建的类名) //此方法是把 日期类型的数据转化为 字符串类型 + (NSString *)
阅读全文
posted @ 2016-02-18 19:15 弓林
阅读(195)
评论(0)
推荐(0)
关于协议传值
摘要: // .h 内部的声明部分 (即:fourthController ) //1 声明协议 //UI中的协议名称为,当前类名 + Delegate @protocol FourthViewControllerDelegate <NSObject> //不加说明:默认是必须实现的方法 - (void)p
阅读全文
posted @ 2016-02-18 17:21 弓林
阅读(185)
评论(0)
推荐(0)
Block传值
摘要: 1.1 Block内部写方法,其声明和实现部分: #import <Foundation/Foundation.h> //重定义 typedef void (^String)(NSString *); @interface AppTool : NSObject - (void)sendNumber:
阅读全文
posted @ 2016-02-18 16:58 弓林
阅读(266)
评论(0)
推荐(0)
UIImagePickerController(相册的使用)
摘要: 此工程使用Storyboard来实现的: #import "ViewController.h" @interface ViewController ()<UIImagePickerControllerDelegate,UINavigationControllerDelegate> @property
阅读全文
posted @ 2016-02-18 12:37 弓林
阅读(1222)
评论(0)
推荐(0)
Handler(单例传值)
摘要: 1 声明单例字符串类型,以copy类型 2 单例是类方法 3 返回值类型是 instancetype 4 单例不能释放 #import "Handler.h" static Handler *handler = nil;//需要把单例创建为全局变量 @implementation Handler +
阅读全文
posted @ 2016-02-18 12:12 弓林
阅读(525)
评论(0)
推荐(0)
UISearchController
摘要: #import "SearchViewController.h" @interface SearchViewController ()< UISearchResultsUpdating, UITableViewDelegate, UITableViewDataSource>//UISearchCon
阅读全文
posted @ 2016-02-18 11:52 弓林
阅读(688)
评论(0)
推荐(0)
下一页
公告