码迷,mamicode.com
首页 >  
搜索关键字:implementation    ( 1803个结果
去除警告,打电话,发信息,应用程序之间跳转,打印沙盒路径,字符串名字转换方法,包装导航控制器等的代码
从偏好设置中读取值:打电话代码:发信息代码:打印沙盒路径代码:应用程序之间跳转代码:跳转到苹果商店代码:去除警告代码:根据字符串名称转换成相对应方法的代码:#import "SZMSettingsCell.h"@implementation SZMSettingsCell//选择不同的cell类型+...
分类:其他好文   时间:2015-12-12 21:40:09    阅读次数:337
iphone 与 ipad -- UIPopoverPresentationViewController
iOS8.0之后, 苹果推出了UIPopoverPresentationViewController, 在弹出控制器时, 统一采用 presentViewController,但是要实现iPhone和iPad能够统一使用一段代码, 需要进行一些设置:@implementation ViewCon.....
分类:其他好文   时间:2015-12-11 11:21:37    阅读次数:274
runtime------动态添加方法
#import "ViewController.h"#import "Person.h"#import @interface ViewController ()@end@implementation ViewController/* 注意: 1.如果一个类中方法仅仅是声明,并不会加载到内...
分类:其他好文   时间:2015-12-10 23:22:43    阅读次数:212
动画(两个图片切换)
简单的动画#import "SZMLuckyController.h"@interface SZMLuckyController ()@property (weak, nonatomic) IBOutlet UIImageView *luckyLight;@end@implementation SZ...
分类:其他好文   时间:2015-12-10 13:09:29    阅读次数:120
OC 方法和函数
/*方法1.对象方法都是以减号 -2.对象方法的声明必须写在@interface和@end之间 对象方法的实现必须写在@implementation和@end之间3.对象方法只能由对象来调用4.对象方法归类\对象所有函数1.函数能写在文件中的任意位置(@interface和@end之间除外),函数归...
分类:其他好文   时间:2015-12-09 23:17:47    阅读次数:167
The u32 classifier
Theu32classifierThe U32 filter is the most advanced filter available in the current implementation. It entirely based on hashing tables, which make it...
分类:其他好文   时间:2015-12-09 19:48:05    阅读次数:168
线程GCD
#import "ViewController.h"@interfaceViewController ()@end@implementation ViewController- (void)viewDidLoad { [superviewDidLoad]; UIImageView *imagev.....
分类:编程语言   时间:2015-12-09 13:53:24    阅读次数:146
HashedWheelTimer
HashedWheelTimer 是根据Hashed and Hierarchical Timing Wheels: Data Structuresfor the Efficient Implementation of a Timer Facility这篇论文做出来的.HashedWheelTime...
分类:其他好文   时间:2015-12-08 18:00:49    阅读次数:163
OC 封装
一、面向对象和封装面向对象的三大特性:封装(成员变量)、继承和多态在OC语言中,使用@interface和@implementation来处理类。@interface就好像暴露在外面的时钟表面,像外界提供展示以及接口。@implementation就好像隐藏在时钟内部的构造实现,把具体的实现封装了起...
分类:其他好文   时间:2015-12-08 14:16:15    阅读次数:168
涂鸦画板
#import "ViewController.h"#import "DrawView.h"@interface ViewController ()@end@implementation ViewController-(void)loadView{ self.view = [[DrawView a....
分类:其他好文   时间:2015-12-08 08:39:55    阅读次数:128
1803条   上一页 1 ... 77 78 79 80 81 ... 181 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!