中国开发网: 论坛: iCosta: 贴子 587404
acdc: 1.0.2/1.1.2下面都发现有问题
你可以直接创建一个UISearchField就应该可以看到这个问题了。
228 searchBar = [[UISearchField alloc] initWithFrame:CGRectMake(30.0f, ([UINavigationBar defaultSize].height - [UISearchField defaultHeight]) / 2., frame.size.width - 60., [UISearchField defaultHeight])]; 229 [searchBar setDisplayEnabled:YES]; 230 struct __GSFont * font=[NSClassFromString(@"WebFontCache") createFontWithFamily:@"Helvetica" traits:2 size:18.]; 231 [searchBar setFont:font]; 232 [searchBar setClearButtonStyle:2]; 233 [searchBar setPaddingLeft:8.0f]; 234 [searchBar setPaddingTop:4.0f]; 235 // [searchBar setTextCentersVertically:YES]; 236 [[searchBar textTraits] setReturnKeyType:6]; 237 [[searchBar textTraits] setEditingDelegate:self];


我自己用1.0.2版本,只是界面不一致,不影响使用
但是1.1.2版本上似乎严重一点。
下面的截图是1.1.2的。

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录