The code I used to create a rectangle (at least until iOS7) was
CGRect rect = [cTableView frame];
rect.origin.y += [cTableView rowHeight];
searchOverlayView = [[BecomeFirstResponderControl alloc] initWithFrame:rect];
On iOS7, cTableView
(an instance of a UITableView
) returned 44
. Testing in iOS8 with an iPhone 5s returns -1
.
Why is this happening? What is the correct code that needs to be used in order for my app to be backwards compatible with iOS7?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…