Skip to content

Commit

Permalink
Merge pull request #266 from apptentive/IOSOSX-537
Browse files Browse the repository at this point in the history
IOSOSX-537: "Crash" when clicking no in ED
  • Loading branch information
frankus committed Jun 2, 2016
2 parents 26a3b2b + b168b42 commit 98280bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ApptentiveConnect/resources/Apptentive.storyboard
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10116" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
Expand Down
Expand Up @@ -233,11 +233,6 @@ - (void)viewDidLoad {
self.navigationItem.leftBarButtonItem = nil;
}

self.contextMessage = nil;
if (self.interaction.contextMessageBody) {
self.contextMessage = [[Apptentive sharedConnection].backend automatedMessageWithTitle:nil body:self.interaction.contextMessageBody];
}

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(resizeFooterView:) name:UIKeyboardWillChangeFrameNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(scrollToFooterView:) name:UIKeyboardWillShowNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(resizeFooterView:) name:UIKeyboardDidHideNotification object:nil];
Expand Down Expand Up @@ -326,6 +321,11 @@ - (void)viewWillAppear:(BOOL)animated {

self.isSubsequentDisplay = YES;
}

self.contextMessage = nil;
if (self.interaction.contextMessageBody) {
self.contextMessage = [[Apptentive sharedConnection].backend automatedMessageWithTitle:nil body:self.interaction.contextMessageBody];
}
}

- (void)viewWillDisappear:(BOOL)animated {
Expand Down

0 comments on commit 98280bc

Please sign in to comment.