上一页 1 ··· 3 4 5 6 7 8 9 下一页
//-------------------获取设备大小-------------------------//NavBar高度#defineNavigationBar_HEIGHT44//获取屏幕宽度、高度#defineSCREEN_WIDTH([UIScreenmainScreen].bounds.size.width)#defineSCREEN_HEIGHT([UIScreenmainScreen].bounds.size.height)//-------------------获取设备大小-------------------------//-------------------打印日志- Read More
posted @ 2013-06-13 11:06 leevaboo Views(254) Comments(0) Diggs(0)
[[NSNotificationCenterdefaultCenter] addObserver:selfselector:@selector(keyboardWasChange:) name:UIKeyboardDidChangeFrameNotificationobject:nil];- (void)keyboardWasChange:(NSNotification *)aNotification { NSDictionary *info = [aNotification userInfo]; CGSize kbSize = [[info objectForKey:UIKeyboardFr Read More
posted @ 2013-06-08 17:18 leevaboo Views(269) Comments(0) Diggs(0)
首先:宏定义//判断是否是iphone5#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640,1136), [[UIScreen mainScreen] currentMode].size) : NO)//监听键盘的宏定义#define _UIKeyboardFrameEndUserInfoKey(&UIKeyboardFrameEndUserInfoKey != NULL ? UIKeyboardFrameEndU Read More
posted @ 2013-06-07 11:09 leevaboo Views(150) Comments(0) Diggs(0)
NSTimer其实是将一个监听加入的系统的RunLoop中去,当系统runloop到如何timer条件的循环时,会调用timer一次,当timer执行完,也就是回调函数执行之后,timer会再一次的将自己加入到runloop中去继续监听。 CFRunLoopTimerRef和NSTimer这两个类型是可以互换的,当我们在传参数的时候,看到CFRunLoopTimerRef可以传NSTimer的参数,增加强制转化来避免编译器的警告信息指定(注册)一个timer到RunLoops中一个timer对象只能够被注册到一个runloop中在同一时间,尽管在这个runloop中它能够被添加到多个runlo Read More
posted @ 2013-05-27 10:13 leevaboo Views(180) Comments(0) Diggs(0)
const char ZXObjectSingleObjectEvent;-(void)receiveObject:(void(^)(id object))sendObject{ objc_setAssociatedObject(self, &ZXObjectSingleObjectEvent, sendObject, OBJC_ASSOCIATION_COPY);}-(void)sendObject:(id)object{ void(^block)(id object) = objc_getAssociated... Read More
posted @ 2013-05-23 09:58 leevaboo Views(178) Comments(0) Diggs(0)
- (NSString *)URLEncodedString{ NSString *encodedString = (NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)self, NULL, (CFStringRef)@"!*'\"();:@&=+$,/?%#[]% ... Read More
posted @ 2013-05-20 16:14 leevaboo Views(708) Comments(0) Diggs(0)
以下是总结的iOS开发流程以及学习中的资料分享。流程:注册、开发、真机测试、发布以及上线。iPhone iOS 4从注册到app上线开发流程http://blog.csdn.net/linzhiji/article/details/6732868一、关于注册账号IDP和Apple ID:1、注册App ID(无论是iOS使用者还是开发者都需要*****ID,只是后者还需要付99$注册成为开发者。)网址:http://developer.apple.com由于上边的网址没有注册按钮,所以去iTunes注册,方法参照(这里注册的是免费的,您需要注册付费的):http://jingyan.baidu Read More
posted @ 2013-05-10 15:35 leevaboo Views(373) Comments(0) Diggs(0)
- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event{ for (UIView *v in self.subviews) { if (CGRectContainsPoint(_coolFish.frame, point)) { return YES; } } return [super pointInside:point withEvent:event];} Read More
posted @ 2013-05-09 09:21 leevaboo Views(135) Comments(0) Diggs(0)
// self.image = [UIImage imageFromUIView:_contentImageView];// BOOL s = [UIImagePNGRepresentation(image) writeToFile:@"/Users/apple/Desktop/test.png" atomically:YES];// NSLog(@"%d",s);// image = [UIImage imageFromUIView:(UIView *)sender]; Read More
posted @ 2013-04-18 14:52 leevaboo Views(118) Comments(0) Diggs(0)
1、如果单独看归档和解档就是档案管理的范畴了,一些组织机构会按照自己的档案管理制度,将一些旧的文件档案进行统一保存,例如文件原件、往来公文、电报传真等内容,解档就是根据制度解密档案的意思。在信息化时代,这种档案管理很多时候会应用到一些文档管理软件、数据备份软件(亚势备份)来实现。2、如果你这四个词方在一起,就是编程方面的问题了,由于不是我本专业,那么我查询了一些内容,你可以去看一下。对象编码预备知识类定义、协议;相关文章归档、、属性表对象生命周期对象编码把对象的类特征以及对象状态转化某种格式,这种格式可存储,也可在进程间传递。类的类型以及实例数据会被写入到某种字节流里面,当程序结束的时候,该字 Read More
posted @ 2013-03-22 11:24 leevaboo Views(335) Comments(0) Diggs(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页