开发者

add subview in another subview

i use this code but nothing shows开发者_Python百科 up!!!!? help

CGRect frame = CGRectMake(0.0,0.0,480,320);
secondview=[[UIView alloc] initWithFrame:frame];

[self.view addSubview:secondview];  
[self.view bringSubviewToFront:secondview];


Right now your view doesn't have any content. Try adding this:

[secondView setBackgroundColor:[UIColor redColor]];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜