So, it seems that the UIButton display area with type UIButtonTypeInfoLight is much larger than its frame. Because of this, I can’t put a button next to it, trying to press it, it will touch the info button instead.
_infoButton.frame = CGRectMake(0, 0, 40, height);
_searchButton.frame = CGRectMake(CGRectGetMaxX(_infoButton.frame), 0, 40, height);
Does anyone have a question on how to get the display area of a button?
Edit: clicking the "Information" button is not my main question (just an illustration of why this might be important). My question is to find out the “hit area" for these types of buttons.
source
share