Skip to content

Commit

Permalink
readme format
Browse files Browse the repository at this point in the history
  • Loading branch information
BenL committed Mar 7, 2016
1 parent 492e257 commit f6cdb19
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,24 @@ You must create your survey and set up your SDK Collector in [www.surveymonkey.c
```objc
#import <SurveyMonkeyiOSSDK/SurveyMonkeyiOSSDK.h>
```

2. Depending on your usage, add a property to your interface:
```objc
@property (nonatomic, strong) SMFeedbackViewController * feedbackController;
```

3. Initialize the SDK and set its delegate:
```objc
_feedbackController = [[SMFeedbackViewController alloc] initWithSurvey:{SAMPLE_SURVEY_HASH}];
_feedbackController.delegate = self;
```
4. If you are a Platinum user and want to include custom variables with each survey response, create a flat NSDictionary* with your custom variables and use:
```objc
_feedbackController = [[SMFeedbackViewController alloc] initWithSurvey:{SAMPLE_SURVEY_HASH} andCustomVariables:{SAMPLE_CUSTOM_VARIABLES_DICTIONARY}];
```
5. If your app supports iOS 9, you must add the following lines to your app's .plist file:

5. **Important**: If your app supports iOS 9, you must add the following lines to your app's .plist file:
```html
<key>NSAppTransportSecurity</key>
<dict>
Expand Down

0 comments on commit f6cdb19

Please sign in to comment.