当一个view上显示的内容能够用一个UITableView实现,可以通过子类化一个UITableViewController控制器,上面提供了一个UITableView对象,不需要自己维护其frame,使用起来还是挺方便的。但是当在该控制器的view上添加其他的视图时,会出现无论如何都会添加的se....
分类:
其他好文 时间:
2015-04-02 18:26:27
阅读次数:
124
function showTab() { $(".tab-nav li").click(function(){ var self = $(this), target = self.data("tab"); self.addClass("current").sibli...
分类:
Web程序 时间:
2015-04-02 15:02:12
阅读次数:
214
//比如创建一个UIImageView到view上UIImageView *imageView = [[UIImageView allc] init];imageView.tag = 10001; //需要设置一个tag [self.view addSubView:imageView];//在别.....
分类:
移动开发 时间:
2015-04-02 13:12:14
阅读次数:
162
NSArray * arr1 = @[@a,@b,@c];NSArray * arr2 = @[@2c,@d,@e,@f];NSPredicate * filterPredicate = [NSPredicate predicateWithFormat:@" (SELF IN %@)",arr1];NSArray * filter = [arr2 filteredArrayUsingPredicat...
分类:
编程语言 时间:
2015-04-02 10:22:12
阅读次数:
174
1 延迟执行函数[self performSelector:@selector( nextQuestion) withObject:nil afterDelay:0.5];2 应用名称国际化(1)项目-》Proje...
分类:
其他好文 时间:
2015-04-01 21:40:31
阅读次数:
131
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
[self.timeBackView addGestureRecognizer:tap];
- (void)tapAction:(UITapGestureRecognize...
分类:
移动开发 时间:
2015-04-01 20:01:01
阅读次数:
224
去掉ios7.0以上表格分割线15像素的空隙1、首先在viewDidLoad方法加入以下代码:if ([self.tableView respondsToSelector:@selector(setSeparatorInset:)]) {[self.tableView setSeparatorIns...
分类:
移动开发 时间:
2015-04-01 19:22:54
阅读次数:
113
builder = $builder; } public static function getInstance(Builder $builder){ if(self::$_instance == null){ self::$_instance = n...
分类:
其他好文 时间:
2015-04-01 19:10:44
阅读次数:
130
在ios8上 [TableView setSeparatorInset:UIEdgeInsetsMake(0,0,0,0)];不起作用经过测试加入下面方法 在ios7 8上都可以正常工作 1 -(void)viewDidLayoutSubviews 2 { 3 if ([self.table...
分类:
移动开发 时间:
2015-04-01 19:08:47
阅读次数:
119
有一个登陆界面,还有一个包含多个选项卡的界面在ViewController.m中登陆按钮的代码如下UIViewController *controller=[[Tabbarcontroller alloc]init];[self presentModalViewController:controll...
分类:
移动开发 时间:
2015-04-01 17:09:38
阅读次数:
165