上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页
摘要: UIImage+Screenshot.h#import @interface UIImage (Screenshot)+ (UIImage *)screenshot;@end#import "UIImage+Screenshot.h"@implementation UIImage (Screensh... 阅读全文
posted @ 2014-11-04 16:42 菜鸟程序猿 阅读(523) 评论(0) 推荐(0) 编辑
摘要: UIViewController *viewController = [[UIViewController alloc]init];UIViewController* controller = self.view.window.rootViewController;viewController.vi... 阅读全文
posted @ 2014-10-30 14:01 菜鸟程序猿 阅读(747) 评论(0) 推荐(0) 编辑
摘要: [_yourTextField addTarget:self action:@selector(eventEditingChange:) forControlEvents:UIControlEventEditingChanged];-(void)eventEditingChange:(UITextF... 阅读全文
posted @ 2014-10-24 13:29 菜鸟程序猿 阅读(187) 评论(0) 推荐(0) 编辑
摘要: //还可以输入的长度。- (void)textViewDidChange:(UITextView *)textView{ UITextRange *markRange = textView.markedTextRange; int pos = [textView offsetFromPo... 阅读全文
posted @ 2014-10-24 13:27 菜鸟程序猿 阅读(471) 评论(0) 推荐(0) 编辑
摘要: #import #import typedef void (^block)(void);@interface FunctionRunTime : NSObject+ (CGFloat)runTimeBlock:(block)block;@end#import "FunctionRunTime.h"@... 阅读全文
posted @ 2014-10-24 13:25 菜鸟程序猿 阅读(1488) 评论(0) 推荐(0) 编辑
摘要: 1. @interface里: CLLocationManager *locationManager;2. 初始化: locationManager = [[CLLocationManager alloc] init];3. 调用请求: [locationManager reque... 阅读全文
posted @ 2014-09-23 09:41 菜鸟程序猿 阅读(175) 评论(0) 推荐(0) 编辑
摘要: UIScrollView中添加了一个手势 UITapGestureRecognizer *_tapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(foregroundTapped:)]... 阅读全文
posted @ 2014-09-12 10:14 菜鸟程序猿 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 自定义一个View DrawLineDrawLine.h#import @protocol gridTouchDelete - (void)gridTouchColumn:(NSInteger)column touchRow:(NSInteger)row;@end@interface DrawLin... 阅读全文
posted @ 2014-09-10 14:11 菜鸟程序猿 阅读(1518) 评论(0) 推荐(0) 编辑
摘要: UIApplication *app = [UIApplication sharedApplication]; [app performSelector:@selector(suspend)]; //wait 2 seconds while app is going background [NST... 阅读全文
posted @ 2014-09-04 09:28 菜鸟程序猿 阅读(302) 评论(0) 推荐(0) 编辑
摘要: UILabel *badge = (UILabel *)[self.view viewWithTag:10000]; 阅读全文
posted @ 2014-08-28 15:12 菜鸟程序猿 阅读(173) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页