This is a migrated thread and some comments may be shown as answers.

Cannot import Everlive SDK in Swift Application

4 Answers 67 Views
Apple iOS SDK
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
smeshko
Top achievements
Rank 1
smeshko asked on 28 Oct 2014, 12:10 PM
Hi,

I'm using the backend services in an iOS Swift app,
but when I try to import the SDK, Xcode says it can't find the library. I
added the EverliveSDK.framework to the project, created the Bridging
file and imported the necessary header

#import <EverliveSDK/EverliveSDK.h>.

Am I doing something wrong, or is there a problem with the SDK and Swift/iOS8 ?


4 Answers, 1 is accepted

Sort by
0
Accepted
Anton Dobrev
Telerik team
answered on 28 Oct 2014, 02:35 PM
Hi Ivaylo,

Based on the information you provided I am guessing that you need also to register the Bridging header  under Build Settings > Swift Compiler > Code Generation with the relative path to the header.

In case this does not solve the issue could you please provide a sample that reproduces the issue and we will take a look into it?

For your convenience we created a simple project that uses the iOS SDK with Swift. Note that in order to test it you need to connect the app to a backend project of type Friends app by entering the API key for this project in the ViewController.swift file:
let myApiKey:NSString = "YOUR_API_KEY"

Let me know if you have questions.

Regards,
Anton Dobrev
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
0
smeshko
Top achievements
Rank 1
answered on 28 Oct 2014, 02:53 PM
Hi Anton,

thanks for the swift and detailed reply ! The header was already registered with the correct path, still the problem persists. I believe that Xcode cannot find the .framework file itself, even though I have added its location to the Build Settings > Search Paths > Framework Search Paths manually. Since I am not that far into coding the project, I will use the sample you created as a basis and just continue from there.
0
megharaj
Top achievements
Rank 1
answered on 17 Apr 2015, 05:43 AM

Hi Telerik Team,

 

Displaypercentage in Pie chart for swift is not showing any effect on the pie chart. 

could you please assist me with the same.?

 Hoping for your response

Thanks,

Megharaj

0
Jack
Telerik team
answered on 17 Apr 2015, 12:05 PM
Hi megharaj,

This question seems to be related with our iOS controls suite. You will get faster response if you post your questions directly in the appropriate product forum.

Directly to the issue, you should set the textHidden property of the pointLabelStyle in order to show point labels. Consider the following code:
series.labelDisplayMode = TKChartPieSeriesLabelDisplayMode.Inside
series.style.pointLabelStyle.textHidden = false
series.displayPercentage = true

I hope this helps. 

Regards,
Jack
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
Tags
Apple iOS SDK
Asked by
smeshko
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
smeshko
Top achievements
Rank 1
megharaj
Top achievements
Rank 1
Jack
Telerik team
Share this question
or