摘要:
在iOS7 下测试了一些方法,发现还是攺变不了文本的居左,最后发现了一个nb的招; _searchBar = [[UISearchBar alloc]initWithFrame:CGRectZero]; if (kiOS7) { _searchBar.placeholder = @"请输入您所在的城市 "; } else { _searchBar.placeholder = @"请输入您所在的城市"; }看到上面的ios7下配置没,后面加了一堆的空格!哈哈http:/... 阅读全文
posted @ 2013-11-07 17:02
cocoajin
阅读(2480)
评论(0)
推荐(0)
摘要:
主要是在 UISearchDisplayDelegate中更改;- (void)searchDisplayControllerWillBeginSearch:(UISearchDisplayController *)controller{ [_searchBar setShowsCancelButton:YES animated:NO]; if (kiOS7) { for (UIView *subView in [[_searchBar.subviews objectAtIndex:0] subviews]){ if([subView isKin... 阅读全文
posted @ 2013-11-07 16:00
cocoajin
阅读(1587)
评论(0)
推荐(0)
摘要:
UISlider 设置增量 UISlider *slier = [[UISlider alloc]initWithFrame:CGRectMake(wu500.right, 0, 210, 50)]; slier.minimumValue = 500; slier.maximumValue = 4000; slier.thumbTintColor = [UIColor redColor]; [self.view addSubview:slier]; [slier addTarget:self action:@selector(sliderValueChang... 阅读全文
posted @ 2013-11-07 11:02
cocoajin
阅读(376)
评论(0)
推荐(0)
浙公网安备 33010602011771号