码迷,mamicode.com
首页 >  
搜索关键字:implementation    ( 1803个结果
UIBarButtonItem
导航栏左边 设置图片#import "UIBarButtonItem+XMGExtension.h"@implementation UIBarButtonItem (XMGExtension)+ (instancetype)itemWithImage:(NSString *)image highIm...
分类:其他好文   时间:2015-11-10 20:54:56    阅读次数:170
OC通知实例
#import "NotificationClass.h"#import "AnotherNotificationClass.h"@implementation NotificationClass//注册通知-(void)addNotification{ [[NSNotificationCente....
分类:其他好文   时间:2015-11-10 09:21:52    阅读次数:252
DbContext 中的 Explicit interface implementation
疑惑前段时间一直再用Entity Framework 6,写了一些公用的方法,在这个过程中发现了DbContext实现的接口IObjectContextAdapter,可以通过这个接口访问到更底层的ObjectContext对象,比如((IObjectContextAdapter)ctx).Obje...
分类:数据库   时间:2015-11-09 18:40:23    阅读次数:201
手势 - 单击、长按、拖动等
@implementation ViewControllerUILabel *labelView;int startX;int startY;- (void)viewDidLoad { [super viewDidLoad]; startX = 100; startY = 100; la...
分类:其他好文   时间:2015-11-09 18:34:15    阅读次数:195
计时器的写法
1 @interface MyPlanarCodeViewController () 2 //定义计时器 3 @property (nonatomic, strong) NSTimer *timer; 4 @end 5 6 @implementation MyPlanarCodeViewCo...
分类:其他好文   时间:2015-11-09 15:22:52    阅读次数:341
[IOS:OC]Sqlite建库建表增删改查简单实例
#import "ViewController.h" #import #import "Person.h" @interface ViewController () { sqlite3 *_db; } @end @implementation ViewController - (void)viewD...
分类:移动开发   时间:2015-11-08 22:17:58    阅读次数:285
访问相册, 从相册中选取图片
@interface OneViewController (){ UIImageView *imageView;}@end@implementation OneViewController- (void)viewDidLoad { [super viewDidLoad]; self.view....
分类:其他好文   时间:2015-11-08 22:10:19    阅读次数:278
指定字节拷贝文件
#import "SizeCopy.h"@implementation SizeCopy-(void)accordingByteCopy:(NSInteger)size{ //获取桌面上的文件路径,以便拷贝 NSString *oldPath=@"/Users/scjy/Desktop/video....
分类:其他好文   时间:2015-11-06 22:11:59    阅读次数:239
点击发送短信按钮跳转到手机短信界面实现发送短信
新建一个singleView代码如下: #import?"ViewController.h" @interface?ViewController?() @end @implementation?ViewController -?(void)viewDidLoad?{ ????[super?viewDidLoad]; ????NSLog(@...
分类:移动开发   时间:2015-11-06 18:09:31    阅读次数:498
NSAssert使用
断言使用:断言的第一个参数为NO时,程序执行到这里时就会崩溃并原文打印第二个参数.@implementation People- (void)eat{ BOOL isB = NO; if (3 > 4) { isB = YES; } NSAssert(isB == YES, @"要崩溃了");//断...
分类:其他好文   时间:2015-11-06 17:47:45    阅读次数:127
1803条   上一页 1 ... 83 84 85 86 87 ... 181 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!