开发者

Can't get setFrame to work (or setBounds, or .frame, for that matter...)

I've been searching for a solution on this but I'm stumped... I have a UIView that I've initialized with a frame, and now I need to resize that frame, but I am having no luck at all:

Assuming that listItem_Y and listItem_Height both contain values (which they do) can anyone explain what I'm missing to resize the view?

primaryColumnListItems.frame = CGRectMake(0, 0, primaryColumnListItems.frame.size.width, listItem_Y + listItem_Height);

[primaryColumnListItems setFrame:CGRectMake(0, 0, primaryColumnListItems.frame.size.width, listItem_Y + listItem_Height)];

Neither variation开发者_高级运维 of bounds is working for me either.

Thanks


Never mind, I'm a goofball... It was a casting issue with values stored as ints needing to be typecast to CGFloats.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜