From e77d91b28377b7367bc4bbf9e7d59b4dce2011ba Mon Sep 17 00:00:00 2001 From: Alexandr Barenboym Date: Fri, 28 Mar 2014 13:03:41 +0200 Subject: [PATCH 1/4] Starting from iOS 7.1 SUDDENLY even if u set UIToolBar appearance tint color newly created tool bar tint color will be default and not the one u set. Not sure when is actually applied and are other elements affected, but to apply to prev next segmented control application color theme _prevNext.tintColor should be set from [UIToolbar appearance].tintColor instead of UIToolbar actionBar object tintColor property as it is not set at that moment --- quickdialog/QEntryTableViewCell.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickdialog/QEntryTableViewCell.m b/quickdialog/QEntryTableViewCell.m index e0f116bf..4293385b 100644 --- a/quickdialog/QEntryTableViewCell.m +++ b/quickdialog/QEntryTableViewCell.m @@ -36,7 +36,7 @@ -(UIToolbar *)createActionBar { _prevNext = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObjects:NSLocalizedString(@"Previous", @""), NSLocalizedString(@"Next", @""), nil]]; _prevNext.momentary = YES; _prevNext.segmentedControlStyle = UISegmentedControlStyleBar; - _prevNext.tintColor = actionBar.tintColor; + _prevNext.tintColor = [UIToolbar appearance].tintColor; [_prevNext addTarget:self action:@selector(handleActionBarPreviousNext:) forControlEvents:UIControlEventValueChanged]; UIBarButtonItem *prevNextWrapper = [[UIBarButtonItem alloc] initWithCustomView:_prevNext]; UIBarButtonItem *flexible = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil]; From 0204d7e87d60d08758405e339ed34d0360db4288 Mon Sep 17 00:00:00 2001 From: Alexandr Barenboym Date: Tue, 8 Sep 2015 15:07:19 +0300 Subject: [PATCH 2/4] infinite loop fix --- extras/QPickerTableViewCell.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/QPickerTableViewCell.m b/extras/QPickerTableViewCell.m index 444ee5dc..4bfc7fc5 100644 --- a/extras/QPickerTableViewCell.m +++ b/extras/QPickerTableViewCell.m @@ -19,7 +19,7 @@ @implementation QPickerTableViewCell - (QPickerTableViewCell *)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { - if ((self = [self initWithStyle:style reuseIdentifier:reuseIdentifier])) + if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) { [self createSubviews]; self.selectionStyle = UITableViewCellSelectionStyleBlue; From 25e5a5ecddeb8b4c04fe9072e615aa175f69f223 Mon Sep 17 00:00:00 2001 From: Patrick Nollet Date: Wed, 26 Aug 2015 13:30:28 +0200 Subject: [PATCH 3/4] Set root only after data source and delegate are set iOS 9 calls reloadData less agressively than iOS 8 and earlier. If the root of the table view is set too soon (eg. before the data source is set), reloadData may not be called in certain cases, resulting in inconsistencies and inducing crashes. --- quickdialog/QuickDialogTableView.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickdialog/QuickDialogTableView.m b/quickdialog/QuickDialogTableView.m index 8c9c782f..9a66efc8 100644 --- a/quickdialog/QuickDialogTableView.m +++ b/quickdialog/QuickDialogTableView.m @@ -35,7 +35,6 @@ - (QuickDialogTableView *)initWithController:(QuickDialogController *)controller self = [super initWithFrame:CGRectMake(0, 0, 0, 0) style:controller.root.grouped ? UITableViewStyleGrouped : UITableViewStylePlain]; if (self!=nil){ self.controller = controller; - self.root = _controller.root; self.deselectRowWhenViewAppears = YES; self.quickDialogDataSource = [[QuickDialogDataSource alloc] initForTableView:self]; @@ -44,6 +43,8 @@ - (QuickDialogTableView *)initWithController:(QuickDialogController *)controller self.quickDialogTableDelegate = [[QuickDialogTableDelegate alloc] initForTableView:self]; self.delegate = self.quickDialogTableDelegate; + self.root = _controller.root; + self.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; } return self; From 6d9859260aa8cbb56adbb477e722b92e6b3153ce Mon Sep 17 00:00:00 2001 From: Eduardo Scoz Date: Tue, 25 Aug 2015 11:52:04 -0700 Subject: [PATCH 4/4] 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