这个uiview是从nib中加载的。如图
-(id)initWithCoder:(NSCoder *)coder
{
self = [super initWithCoder:coder];
if (self)
{
[self setBackgroundColor:[UIColor blackColor]];
[self setFrame:CGRectMake(0, 100, 319, 45)];//为什么只画出一条黑线啊??????
}
return self;
}uiviewsetframe坐标系
-(id)initWithCoder:(NSCoder *)coder
{
self = [super initWithCoder:coder];
if (self)
{
[self setBackgroundColor:[UIColor blackColor]];
[self setFrame:CGRectMake(0, 100, 319, 45)];//为什么只画出一条黑线啊??????
}
return self;
}uiviewsetframe坐标系
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货