[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];

Comments

Popular posts from this blog

Subclassing and Signal connect on a same widget crashes PySide application on exit.

Calling OpenCV functions via Cython from Python 3.X.

Showing CPU/Memory usage on tmux status bar(tmuxのステータスバーにCPUとMemoryの使用状況を表示する)