Feb 18, 2011

[iPhone]UIButton does not respond when layouted.(layoutSubviewでUIButtonを動かすと、反応しなくなる)

I have been in stuck for days that UIButton does not respond to touch.
I finally figured out that because overridden "layoutSubviews" function did not call it's super's "layoutSubviews" on the top.

If you want to move UIButtons along layout, you should write something like,
-(void) layoutSubviews {
[super layoutSubviews];

No comments: