首页 软件开发 代码片段 objective-c ( Page 50 )

objective-c 628

#Objective-C
tableViewCell 下划线 长度设置为屏幕的宽

//加上这写代码 ios7-8 -(void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; if ([tableVi…

2014-12-09 202

#Objective-C
MAC 下提取剪切板内容 发送到指定邮箱

// // main.m // test // // Created by Developer on 3/11/15. // Copyright (c) 2015 Develope…

2014-12-08 679

#Objective-C
IOS新闻APP

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = …

2014-12-08 774

#Objective-C
//cell缩进级别 函数

- (NSInteger)tableView:(UITableView *)tableView indentationLevelForRowAtIndexPath:(NSIndex…

2014-12-07 278

#Objective-C
实用方法-Debug和Release执行不同代码

typedef void (^SwitchingEnvirBlock)(); void switchingEnvir(SwitchingEnvirBlock useDevice,S…

2014-12-07 981

#Objective-C
iOS关于手势UISwipeGestureRecognizer的基本用法和属性

/*********************滑动手势*************************/ //创建手势名数组 UISwipeGestureRecognizerDir…

2014-12-06 989

#Objective-C
iOS 8及以上实现毛玻璃效果

#import "ViewController.h" #import "ILTranslucentView.h" #import <QuartzCore/QuartzCore…

2014-12-05 555

#Objective-C
iOS设置UITableViewCell的背景色透明

//设置UIColor为clearColor: cell.backgroundColor=[UIColor clearColor]; //或者,设置颜色透明度为0: cell.ba…

2014-12-05 171

#Objective-C
iOS xib 嵌套复用

/** * 可复用组件.用于编写可嵌套的 xib 组件. * * 适用场景: 需要静态确定布局的页面内的UI元素的复用性问题. * 使用方法: 在xib或storyboard中,将…

2014-12-02 750

#Objective-C
PrintObject

+ (NSDictionary*)getObjectData:(id)obj { NSMutableDictionary *dic = [NSMutableDictionary d…

2014-11-28 253

#Objective-C
iOS关于UIPageControl的基本属性

//创建UIPageControl UIPageControl * page = [[UIPageControl alloc] initWithFrame:CGRectMake(0…

2014-11-28 640