摘要:
可以通过xib修改UINavigationController中UINavigationBar的class,但是无法从代码里进行修改,然后可以通过从xib中加载来获取这个UINavController,如果想从init方法中获取custom navBar的navController,可以在init方法里如下实现- (id)init { NSArray* objects = [[NSBundle mainBundle] loadNibNamed:@"LoginWindowController"owner:niloptions:nil]; for (id o in object 阅读全文
posted @ 2013-01-31 10:11
mahaiyan
阅读(342)
评论(0)
推荐(0)
摘要:
control.contentVerticalAlignment = UIControlContentVerticalAlignmentCentertypedefenum { UIControlContentVerticalAlignmentCenter = 0, UIControlContentVerticalAlignmentTop = 1, UIControlContentVerticalAlignmentBottom = 2, UIControlContentVerticalAlignmentFill = 3,} UIControlConten... 阅读全文
posted @ 2013-01-31 10:09
mahaiyan
阅读(287)
评论(0)
推荐(0)
摘要:
1. 去除Plain的tableView下面多余的空的cell self.tableView.tableFooterView = [[[UIView alloc] initWithFrame:CGRectZerocolor:[UIColor clearColor]] autorelease];2. UITableViewFooter autoresizing无法正常生效 if (!_tableFooterView) { _tableFooterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, s... 阅读全文
posted @ 2013-01-31 10:07
mahaiyan
阅读(276)
评论(0)
推荐(0)
摘要:
要把framework的architecures中的设置,architectures和valid Architectures中的要一致,而且最好把Build Active Architecture Only 设置为NO,否则编译出来的包很可能只包含了一个architecture,如果工程中引入了其它framework,需要和主工程中的target保持一致,否则会出现莫名其妙的错误 阅读全文
posted @ 2013-01-31 10:01
mahaiyan
阅读(100)
评论(0)
推荐(0)
摘要:
这是苹果的bug,在ios6.0以后已经修复,是在开着zombies的情况下,debug才会出现的问题A:Enabling the Zombies debugging facility had side effects that changed the behavior of ARC code on some operating systems. Both iOS and OS X apps are effected. This has been fixed in iOS 6 or later and has been fixed in OS X 10.8 or later.http://de 阅读全文
posted @ 2013-01-31 09:56
mahaiyan
阅读(477)
评论(0)
推荐(0)
浙公网安备 33010602011771号