码迷,mamicode.com
首页 >  
搜索关键字:implementation    ( 1803个结果
12-26 汽车品牌小应用
一:流程:1.通过plist加载模型对象,代码如下:#import "CZCarGroup.h"@implementation CZCarGroup// 从字典里采的数据赋给这个对象- (instancetype) initWithDic:(NSDictionary *)dic{ if (s...
分类:其他好文   时间:2015-12-26 18:41:47    阅读次数:127
NJKWebViewProgress ——webview进度条
导入头文件#import "NJKWebViewProgressView.h"#import "NJKWebViewProgress.h"遵守协议 实现代码@implementation ViewController{ IBOutlet __weak UIWebView *_webView;...
分类:Web程序   时间:2015-12-25 15:20:35    阅读次数:155
本地推送通知小demo
本地推送通知:#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do ...
分类:其他好文   时间:2015-12-24 22:09:53    阅读次数:228
AFN监控网络状态(代码)
利用AFN进行网络状态监控:#import "HMViewController.h"#import "AFNetworking.h"@interface HMViewController ()@end@implementation HMViewController- (void)viewDidLoa...
分类:其他好文   时间:2015-12-23 21:15:29    阅读次数:208
IOS开发基础之—MD5加密算法
IOS开发基础之—MD5加密算法MD5加密算法,实现类别如下:#import @interface NSString (md5)-(NSString *) md5HexDigest;@end#import "NSString+MD5HexDigest.h"@implementation NSStri...
分类:移动开发   时间:2015-12-23 19:37:18    阅读次数:159
iOS开发——ActionSheet的使用与弹出选择对话框
在我们的iOS开发中,常会见到如下界面的需求:。也就是点击按钮,出现选择提示框,我们今天使用两种方式(ActionSheet和AlertController)来实现该功能。【使用ActionSheet实现】(1)实现代码如下:#import "ViewController.h" @interface ViewController () @end @implementation ViewCon...
分类:移动开发   时间:2015-12-23 14:35:46    阅读次数:326
WeakHashMap学习(一) —— Difference between HashMap and WeakHashMap
WeakHashMapis an implementation ofMapinterface where the memory of the value object can be reclaimed by Grabage Collector if the corresponding key is ...
分类:其他好文   时间:2015-12-23 12:34:53    阅读次数:148
[不断更新]iOS开发常用技术
1.修改默认初始化方法 构建便利构造器修改默认init初始化.m文件中@implementation 类名-(id)init{ self=[super init]; printf("xxx"); if(self){ name=@"xxx"; age=36; xx=xxx; } ret...
分类:移动开发   时间:2015-12-23 12:20:22    阅读次数:234
OC学习 -- Category(类目)
category 类目,分类 为没有源代码的类添加方法 一旦添加成功就相当于原来类具有该方法category 包括两个部分1: @interface + 类名(为哪一个类添加分类) + (分类名) + @end 进行方法的声明2: @implementation + 类名(为哪一个类添加分类) + ...
分类:其他好文   时间:2015-12-22 17:46:29    阅读次数:134
IOS定位
1 #import "ViewController.h" 2 #import 3 @interface ViewController (){ 4 CLLocationManager *_manager;//位置管理器 5 } 6 7 @end 8 9 @implementation ...
分类:移动开发   时间:2015-12-21 18:15:38    阅读次数:165
1803条   上一页 1 ... 75 76 77 78 79 ... 181 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!