From 0122de01d70fded537ecb97f71089d364c8978b5 Mon Sep 17 00:00:00 2001 From: Eduardo Scoz Date: Tue, 25 Aug 2015 11:52:04 -0700 Subject: [PATCH 1/2] Updated pod --- QuickDialog.podspec | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/QuickDialog.podspec b/QuickDialog.podspec index 4385a1c0..fc139e97 100644 --- a/QuickDialog.podspec +++ b/QuickDialog.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'QuickDialog' - s.version = '1.0.2' + s.version = '1.1.0' s.platform = :ios, '5.0' s.license = 'Apache License, Version 2.0' s.summary = 'Quick and easy dialog screens for iOS.' @@ -25,5 +25,25 @@ Pod::Spec.new do |s| sp.source_files = 'extras', '*.{h,m}' end + s.subspec "QPicker" do |sp| + sp.dependency 'QuickDialog/Core' + sp.source_files = 'extras/QPicker*.{h,m}' + end + s.subspec "QMail" do |sp| + sp.dependency 'QuickDialog/Core' + sp.source_files = 'extras/QMail*.{h,m}' + end + s.subspec "QMap" do |sp| + sp.dependency 'QuickDialog/Core' + sp.source_files = 'extras/QMap*.{h,m}' + end + s.subspec "QWeb" do |sp| + sp.dependency 'QuickDialog/Core' + sp.source_files = 'extras/QWeb*.{h,m}' + end + s.subspec "QColor" do |sp| + sp.dependency 'QuickDialog/Core' + sp.source_files = 'extras/QColor*.{h,m}', 'extras/UIColor*.{h,m}' + end end From 1558f1835b5a860b07dff133467281767d7ec80b Mon Sep 17 00:00:00 2001 From: Mathieu Tan Date: Tue, 3 Nov 2015 16:52:56 +0100 Subject: [PATCH 2/2] radioelement - scroll to preselected element only after the view did appear --- quickdialog/QuickDialogController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quickdialog/QuickDialogController.m b/quickdialog/QuickDialogController.m index 879888d4..d22270ec 100644 --- a/quickdialog/QuickDialogController.m +++ b/quickdialog/QuickDialogController.m @@ -120,15 +120,15 @@ - (void)viewWillAppear:(BOOL)animated { if (_root!=nil) { self.title = _root.title; self.navigationItem.title = _root.title; - if (_root.preselectedElementIndex !=nil) - [self.quickDialogTableView scrollToRowAtIndexPath:_root.preselectedElementIndex atScrollPosition:UITableViewScrollPositionTop animated:NO]; - } } - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; + if (_root!=nil && _root.preselectedElementIndex !=nil) { + [self.quickDialogTableView scrollToRowAtIndexPath:_root.preselectedElementIndex atScrollPosition:UITableViewScrollPositionTop animated:NO]; + } if (_root.showKeyboardOnAppear) { QEntryElement *elementToFocus = [_root findElementToFocusOnAfter:nil]; if (elementToFocus!=nil) {