You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Docs/overview.md
+39-17Lines changed: 39 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,23 +11,6 @@ Add the following line to your Podfile:
11
11
12
12
Run `pod install`, and you should now have the latest Contentstack release.
13
13
14
-
15
-
##### Manual
16
-
17
-
1. Download the [Latest iOS SDK release](https://www.contentstack.com/docs/platforms/ios/ios_sdk_latest) and extract the zip file to your local disk.
18
-
19
-
2. Drag and drop Contentstack.framework into your project folder in Xcode.
20
-
A window will appear, prompting you to choose one of the options for adding files. Click the ‘Destination’ checkbox to copy items into the destination group’s folder. This will add the SDK to your project.
21
-
22
-
3. In the project editor, select your app under `TARGETS`. Under the `General` tab, open `Linked Frameworks and Libraries` and add the following libraries:
23
-
- CoreGraphics.framework
24
-
- MobileCoreServices.framework
25
-
- Security.framework
26
-
- SystemConfiguration.framework
27
-
28
-
4. In your target app, click on the `Build Settings` tab and add the `-ObjC` flag to `Other Linker Flags`.
29
-
30
-
31
14
#### Import Header/Module
32
15
You can import header file in Objective-C project as:
33
16
@@ -41,3 +24,42 @@ You can also import as a Module:
41
24
//Swift
42
25
import Contentstack
43
26
27
+
28
+
#### Initializing your SDK
29
+
30
+
To start using the SDK in your application, you will need to initialize the stack by providing the required keys and values associated with them:
let stack:Stack = Contentstack.stackWithAPIKey(API_KEY, accessToken: ACCESS_TOKEN, environmentName: ENVIRONMENT)
37
+
38
+
To get the api credentials mentioned above, you need to log into your Contentstack account and then in your top panel navigation, go to Settings -> Stack to view both your API Key and your Access Token
39
+
40
+
The stack object that is returned is a Contentstack client object, which can be used to initialize different modules and make queries against our [Content Delivery API](https://contentstack.com/docs/apis/content-delivery-api/). The initialization process for each module is explained in the following section.
41
+
42
+
43
+
#### Querying content from your stack
44
+
45
+
To fetch all entries of of a content type, use the query given below:
Copy file name to clipboardExpand all lines: README.md
+1-16Lines changed: 1 addition & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,21 +17,6 @@ Latest Xcode and Mac OS X
17
17
18
18
19
19
To use this SDK on iOS platform, you will have to install the SDK according to the steps given below.
20
-
21
-
22
-
##### Manual
23
-
24
-
25
-
1. Download the [Latest iOS SDK release](https://www.contentstack.com/docs/platforms/ios/ios_sdk_latest) and extract the zip file to your local disk.
26
-
2. Drag and drop Contentstack.framework into your project folder in Xcode. A window will appear, prompting you to choose one of the options for adding files. Click the ‘Destination’ checkbox to copy items into the destination group’s folder. This will add the SDK to your project.
27
-
3. In the project editor, select your app under TARGETS. Under the General tab, open Linked Frameworks and Libraries and add the following libraries:
28
-
- CoreGraphics.framework
29
-
- MobileCoreServices.framework
30
-
- Security.framework
31
-
- SystemConfiguration.framework
32
-
33
-
4. In your target app, click on the Build Settings tab and add the -ObjC flag to Other Linker Flags.
34
-
35
20
##### CocoaPods
36
21
37
22
1. Add the following line to your Podfile:
@@ -315,7 +300,7 @@ You can use advanced sync queries to fetch custom results while performing initi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
0 commit comments