obe*_*aum 8 iphone rounded-corners ipad uisplitviewcontroller
这可能有点挑剔,但在iPad SplitViewController设置中,有2个视图.每个视图都有一个非常小的黑色圆角.(这也可能与iPhone应用程序相同).
此舍入在下图中可见.我想要做的是删除黑色圆角,因此UI不会从底部获得这两个小凸起.有没有人这样做过,或者知道怎么做? - 肯定有可能.
希望有人之前见过这个.
谢谢
替代文字http://img19.imageshack.us/img19/7297/screenshot20100413at102.png
小智 13
将以下内容添加到您的应用代理中:
- (void) fixRoundedSplitViewCorner
{
[self explode:[[UIApplication sharedApplication] keyWindow] level:0];
}
- (void) explode:(id)aView level:(int)level
{
if ([aView isKindOfClass:[UIImageView class]]) {
UIImageView* roundedCornerImage = (UIImageView*)aView;
roundedCornerImage.hidden = YES;
}
if (level < 2) {
for (UIView *subview in [aView subviews]) {
[self explode:subview level:(level + 1)];
}
}
}
Run Code Online (Sandbox Code Playgroud)
在UISplitViewController的DetailViewController中添加:
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
[yourAppDelegate performSelector:@selector(fixRoundedSplitViewCorner) withObject:NULL afterDelay:0];
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2838 次 |
最近记录: |