Monday, January 13, 2014

uiview setframe: CGRect rect drawn wrong size

This uiview is loaded from the nib.

Figure

 
- (Id) initWithCoder: (NSCoder *) coder
{
self = [super initWithCoder: coder];
if (self)
{
[Self setBackgroundColor: [UIColor blackColor]];
[Self setFrame: CGRectMake (0, 100, 319, 45)] ;/ / Why just draw a black line ah? ? ? ? ? ?

}
return self;
}


Reply:

Reply:
Not learned this, bound
Reply:
You load playView to frame set on when another view is also CGRectMake (0, 100, 319, 45), led to the emergence of a black line, will try to above 100 into 0
Reply:
A long time ago the problem was solved myself. . I misplaced, rectangles have not come out, I went to the operation of the

No comments:

Post a Comment