从偏好设置中读取值:打电话代码:发信息代码:打印沙盒路径代码:应用程序之间跳转代码:跳转到苹果商店代码:去除警告代码:根据字符串名称转换成相对应方法的代码:#import "SZMSettingsCell.h"@implementation SZMSettingsCell//选择不同的cell类型+...
分类:
其他好文 时间:
2015-12-12 21:40:09
阅读次数:
337
iOS8.0之后, 苹果推出了UIPopoverPresentationViewController, 在弹出控制器时, 统一采用 presentViewController,但是要实现iPhone和iPad能够统一使用一段代码, 需要进行一些设置:@implementation ViewCon.....
分类:
其他好文 时间:
2015-12-11 11:21:37
阅读次数:
274
#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
/*方法1.对象方法都是以减号 -2.对象方法的声明必须写在@interface和@end之间 对象方法的实现必须写在@implementation和@end之间3.对象方法只能由对象来调用4.对象方法归类\对象所有函数1.函数能写在文件中的任意位置(@interface和@end之间除外),函数归...
分类:
其他好文 时间:
2015-12-09 23:17:47
阅读次数:
167
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
#import "ViewController.h"@interfaceViewController ()@end@implementation ViewController- (void)viewDidLoad { [superviewDidLoad]; UIImageView *imagev.....
分类:
编程语言 时间:
2015-12-09 13:53:24
阅读次数:
146
HashedWheelTimer 是根据Hashed and Hierarchical Timing Wheels: Data Structuresfor the Efficient Implementation of a Timer Facility这篇论文做出来的.HashedWheelTime...
分类:
其他好文 时间:
2015-12-08 18:00:49
阅读次数:
163
一、面向对象和封装面向对象的三大特性:封装(成员变量)、继承和多态在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