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 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; diff --git a/quickdialog/QEntryTableViewCell.m b/quickdialog/QEntryTableViewCell.m index 959c5b18..04479067 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]; 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;