iOS SDK Integration

To integrate iOS SDK with SolidOpinion follow the steps below:

Step 1. Download the appropriate version of the SolidOpinion SDK for your app
  
Step 2. Copy the SDK folder to the root folder of your project

Step 3.  Add SDK to the project



Step 4.  Add the MobileCoreServices and SystemConfiguration libraries to the project



Step 5.  Add the file title to your ViewController

 #import "SolidOpinionSDK.h"

Step 6.  Add a pointer to the SOView object to controller interface
@interface ViewController :      
UIViewController {
SOView * view; }

Step 7. Create the thread and view in the “viewDidLoad” method
SOThread * thread = [SOThread threadPath:@"<your_thread>"      
forSite:@"<your_site_name>"];
view = [SOView viewForThread:thread];
view.frame = CGRectMake(0, 100, self.view.frame.size.width, 50);       [view updateWithInterval:SOViewUpdateInterval15Sec];       view.delegate = (id<SOViewDelegate)self;
[self.view addSubview:view];

Step 8. Call the “stopUpdating” method into destructor

- (void)dealloc { [solidView stopUpdating]; } 

Step 9.  Add in to info.plist
<key>NSAppTransportSecurity</key>      
<dict>         
<key>NSExceptionDomains</key>           
<dict>              
<key>cloudfront.net</key>                 
<dict>                    
<!--Include to allow subdomains-->                    
<key>NSIncludesSubdomains</key>                    
<true/>                   
<key>NSExceptionRequiresForwardSecrecy</key>                   
<false/>                
</dict>             
</dict>        
</dict>


Follow this link to download the pdf version of the manual

Follow this link to watch a video manual about iOS SDK Integration

Find the SolidOpinion iOS SDK integration sample here



Happy commenting!
SolidOpinion

Feedback and Knowledge Base