自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

原创 xcode5 打出支持ios5.0 的ipa

修改project-->targets-->build setiings-->Architecrures 中Architectures 为 $(ARCHS_STANDARD_32_BIT) 修改之后 可能会出现如下错误: malformed or corrupted AST file: 'Unable to load module "/Users/Lan_mac/Li...

2015-06-26 13:59:52 184

原创 NSClassFromString

    UIViewController *viewController = [[NSClassFromString(model.detailClassStr) alloc] init];     [self.navigationControllerpushViewController:viewController animated:YES];

2015-05-07 15:28:43 182

原创 获取本地文件字节数

//获取本地文件字节数-(long long) fileSizeAtPath:(NSString*) filePath{    NSFileManager* manager = [NSFileManagerdefaultManager];    if ([manager fileExistsAtPath:filePath]){        return [[manager at...

2015-04-30 12:35:03 207

原创 获取父视图的对象

- (UIViewController*)viewController {    for (UIView* next = [self superview]; next; next = next.superview) {        UIResponder* nextResponder = [next nextResponder];        if ([nextResponder...

2015-04-22 10:58:54 438

原创 IPAD调用摄像头 相册

 ipad打开相册和调用摄像头的方法跟iPhone 不一样  用 UIPopoverController 显示 - (void) actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{    AppDelegate *app = (AppDelegate *)[U...

2015-01-16 17:42:05 546

原创 获取网络IP

获取网络IP

2015-01-16 17:36:12 132

原创 获取UDID

获取手机唯一表示符

2015-01-14 11:18:29 304

原创 树状结构网络版

树状结构网络版   

2015-01-13 17:38:15 443

原创 多线程NSOperationQueue

    NSInvocationOperation *operation1 = [[NSInvocationOperationalloc]initWithTarget:self                                                                            selector:@selector(uploadImage)...

2015-01-13 17:38:07 125

原创 键盘上添加工具栏

 - (void)viewDidLoad{    [super viewDidLoad];      UIToolbar *toolbar =[[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, [[UIApplication sharedApplication] keyWindow].bounds.size.width, 40...

2015-01-13 17:37:53 228

原创 自定义导航栏

一、全局宏定义       //系统版本号#define SYS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue]//颜色#define UICOLORFROMRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) &gt...

2015-01-12 16:53:41 138

原创 UITableView自定义cell

 - (void)viewDidLoad{    [super viewDidLoad];       UITableView *tableView = [[UITableView alloc] init];    tableView.frame = CGRectMake(0, 0, 320, 480);    tableView.delegate = self;...

2015-01-12 16:28:34 135

原创 获取UIWebView内容的高度

#pragma mark -webViewDelegate-(void)webViewDidFinishLoad:(UIWebView *)webView{       NSInteger webHeight = webView.scrollView.contentSize.height;    NSLog(@"webHeight1:%d", webHeight);    i...

2015-01-12 16:18:28 128

原创 iPhone 调用本地相册 拍照

一、需要导入UIImagePickerControllerDelegate,  UINavigationControllerDelegate  代理 二 、@interface  FaceView()<UIActionSheetDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate>...

2015-01-12 16:12:41 293

监控键盘的高度

- (id)initWithFrame:(CGRect)frame{    self = [super initWithFrame:frame];    if (self) {        [self registerForKeyboardNotifications];     }    return self; } - (void) register...

2015-01-12 16:05:22 112

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除