escoz / QuickDialog

QuickDialog - Quick and easy dialog screens for iOS
http://escoz.com/open-source/quickdialog
Other
3.07k stars 637 forks source link

Improve right-aligned entry elements on iOS7 #615

Open pipacs opened 10 years ago

pipacs commented 10 years ago

The right margin for entry elements on iOS7 is too small (only obvious with right-aligned elements).

pipacs commented 10 years ago

A workaround I use, in QEntryTableViewCell:calculateFrameForEntryElement:

- (CGRect)calculateFrameForEntryElement {
    int extra = (self.textField.clearButtonMode == UITextFieldViewModeNever) ? 15 :10;
    if ([[[UIDevice currentDevice] systemVersion] compare:@"7.0" options:NSNumericSearch] != NSOrderedAscending) {
        extra += 10;
    }
hisham commented 10 years ago

+1

hisham commented 10 years ago

Another (easier) way is to increment the element's appearance.cellBorderWidth by 10.