diff --git a/Classes/BITFeedbackComposeViewController.m b/Classes/BITFeedbackComposeViewController.m index d492f39314..1ab8c55785 100644 --- a/Classes/BITFeedbackComposeViewController.m +++ b/Classes/BITFeedbackComposeViewController.m @@ -43,7 +43,7 @@ #import "BITHockeyHelper.h" -@interface BITFeedbackComposeViewController () { +@interface BITFeedbackComposeViewController () { UIStatusBarStyle _statusBarStyle; } @@ -58,6 +58,7 @@ @property (nonatomic, strong) NSMutableArray *attachments; @property (nonatomic, strong) UIView *textAccessoryView; +@property (nonatomic) NSInteger selectedAttachmentIndex; @end @@ -217,10 +218,9 @@ if (_text) { self.textView.text = _text; - self.navigationItem.rightBarButtonItem.enabled = YES; - } else { - self.navigationItem.rightBarButtonItem.enabled = NO; } + + [self updateBarButtonState]; } - (void)viewDidAppear:(BOOL)animated { @@ -253,7 +253,7 @@ [super viewDidDisappear:animated]; } --(void)refreshPhotoScrollview { +-(void)refreshAttachmentScrollview { CGFloat scrollViewWidth = 0; if (self.attachments.count){ @@ -281,8 +281,9 @@ if (self.attachments.count > self.attachmentScrollViewImageViews.count){ NSInteger numberOfViewsToCreate = self.attachments.count - self.attachmentScrollViewImageViews.count; for (int i = 0;i