1
工作,我有包括面包类,我已分配在iPad的iPhone和景观我的应用程序,人像,当我用下面的代码方向不敬酒视图
customView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 54)] autorelease];
[customView setBackgroundColor: UIColorFromRGB(0xda5340)];
UILabel *lb1=[[[UILabel alloc]initWithFrame:CGRectMake(10, 17, 180, 21)] autorelease];
[email protected]"Pet is out of boundary";
lb1.textAlignment = UITextAlignmentCenter;
lb1.textColor=[UIColor whiteColor];
lb1.backgroundColor = [UIColor clearColor];
[customView addSubview:lb1];
[self.window showToast:customView duration:3.0 position:@"top" ];
在iPhone上运行其显示正确的位置。
当我尝试用ipad它显示垂直像图像。
请帮我整理一下。
你好,很抱歉,但我在ipad和iphone中添加了你的代码在ios 6.0中,它工作正常 –
我的上面的代码是在应用程序委托中,你尝试使用应用程序委托还是查看? – Fazil