上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页
摘要: http://www.cnblogs.com/tangbinblog/archive/2012/07/11/2586472.html 阅读全文
posted @ 2013-12-02 10:17 xiaoxiaoxigua 阅读(129) 评论(0) 推荐(0)
摘要: 1、if ([[[UIDevicecurrentDevice] systemVersion] floatValue] >= 7) { self.view.bounds = CGRectMake(0, -20, self.view.frame.size.width, self.view.frame.size.height ); }2、http://www.ifun.cc/blog/2013/09/28/gua-pei-ios7kai-fa/ 阅读全文
posted @ 2013-11-12 11:03 xiaoxiaoxigua 阅读(199) 评论(0) 推荐(0)
摘要: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *savedImagePath = [documentsDirectory stringByAppendingPathComponent:@"savedImage.png"]; //also be .jpg or another ... 阅读全文
posted @ 2013-09-04 15:22 xiaoxiaoxigua 阅读(180) 评论(0) 推荐(0)
摘要: A页面//向列表页面B发送一个通知 postShopZanCountDataNSMutableDictionary *dic=[[NSMutableDictionaryalloc] init]; [[NSNotificationCenterdefaultCenter] postNotificationName:@"postData"object:niluserInfo:dic];B 页面[[NSNotificationCenterdefaultCenter] addObserver:selfselector:@selector(update:) name:@"po 阅读全文
posted @ 2013-09-02 17:58 xiaoxiaoxigua 阅读(237) 评论(0) 推荐(0)
摘要: 如果cell上面只有一个button 可以设置button.tag=IndexPath.Row;得到当前点击的行数,设置button属性的时候,可以设置一个全局的button来记住当前点击的button,UITableViewCell*clickCell=(UITableViewCell*)[[btn superview] superview];得到当前点击的 button所在的cell 阅读全文
posted @ 2013-09-02 15:29 xiaoxiaoxigua 阅读(483) 评论(0) 推荐(0)
摘要: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ for (UIView *view_ in [self.view subviews]) { if ([view_ isKindOfClass:[UITextField class]]) { UITextField *tf = (UITextField *)view_; [tf resignFirstResponder]; } }} 阅读全文
posted @ 2013-08-17 18:03 xiaoxiaoxigua 阅读(178) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/shenjx1225/article/details/9037631 阅读全文
posted @ 2013-08-11 13:39 xiaoxiaoxigua 阅读(274) 评论(0) 推荐(0)
摘要: 1.Object-c的类可以多重继承么?可以实现多个接口么?Category是什么?重写一个类的方式用继承好还是分类好?为什么?答:不可以,可以实现多个接口;category是分类,,一般情况下分类好,用category重写只会影响到分类本身,不影响其他类和原有类的关系。2.#import 跟#include 又什么区别 #import 跟 #import""又什么区别?答:#import 是oc导入头文件的关键字,#include是c/c++导入头文件的关键字,#import会自动导入一次,不会重复导入,不会引起交叉编译,@class告诉编译器某个类的声明,当执行是才去查 阅读全文
posted @ 2013-07-25 09:18 xiaoxiaoxigua 阅读(10364) 评论(1) 推荐(0)
摘要: 1、java端import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.security.InvalidKeyException; import java.security.KeyFactory; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.... 阅读全文
posted @ 2013-07-22 14:00 xiaoxiaoxigua 阅读(2893) 评论(0) 推荐(0)
摘要: 1、+(id)shareInstance{static ClassA *A=nil;static dispatch_once_t onceToken;dispatch_once(&onceToken,^{A=[[self alloc] init];return A;});} 阅读全文
posted @ 2013-07-19 13:48 xiaoxiaoxigua 阅读(177) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页