escoz / QuickDialog

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

Cannot change presentationMode on a QRadioElement #688

Closed JiDai closed 4 years ago

JiDai commented 10 years ago

Hi,

I cannot change presentationMode on a QRadioElement. QRadioElement has always a presentationMode = QPresentationModeNavigationInPopover . Here is my code for changing the mode :

QRadioElement *eventChoice = [[QRadioElement alloc] initWithItems:[NSArray arrayWithObjects:NSLocalizedString(@"N.C.", @""), nil] selected:0 title:NSLocalizedString(@"Title", @"")];
[section addElement:eventChoice];
[eventChoice setPresentationMode:QPresentationModeModalForm];

I tried to add to section after setting presentationMode but it did not change anything.

After looking the source of QradioElement.m, I found a line self.presentationMode = QPresentationModeNavigationInPopover;. If I remove it, the presentation mode works well.

Thanks.