Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use this library in an objective-c project targeting iOS 7 & 8? #206

Closed
xdf103 opened this issue Jul 11, 2015 · 10 comments
Closed

Can I use this library in an objective-c project targeting iOS 7 & 8? #206

xdf103 opened this issue Jul 11, 2015 · 10 comments

Comments

@xdf103
Copy link

xdf103 commented Jul 11, 2015

I really like this project. Can I use this library in an objective-c project targeting iOS 7 & 8? If yes, how to set it up? I am using Xcode 6.3.2

Regards,
Frank

@liuxuan30
Copy link
Member

yes you can. read README and #108

@xdf103
Copy link
Author

xdf103 commented Jul 11, 2015

I drag all the swift files to the project. When I compile, there are many Swift Compiler Error, e.g. "Use of unresolved identifier CGFloat", "Use of undeclared type UIColor". Is there anything else that I need to do after dragging the swift files?

@liuxuan30
Copy link
Member

I have met this too. Check if you miss import UIKit Sometimes @danielgindi forget to add it.

Paste code will help.

@kscorpio
Copy link

i compile chartsdemo with device 5s ios 7.1 ,it remind: need a recent enough viersion of ios

when i compile in simulator ios 8.1 ,proterty 'shadowColorSameAsCandle ' not found on object of type 'CandlerChartDataSet * '

@kscorpio
Copy link

if the demo in release 2.1 does not support ios 7.1?

@kscorpio
Copy link

i changed the target 8.0 to 7.0
Desktop/ios-charts-master/ChartsDemo/Classes/Components/BalloonMarker.swift:16:8: Module file's minimum deployment target is ios8.0 v8.0:

Library/Developer/Xcode/DerivedData/ChartsDemo-hgbdlbkgurqiigcqlbovqsnignai/Build/Products/Debug-iphonesimulator/Charts.framework/Modules/Charts.swiftmodule/x86_64.swiftmodule

Is this means the library doesn't support 7.1??

@liuxuan30
Copy link
Member

It supports iOS 7, but you only need the swift files if it is based on 7.0.

For iOS 8, you can use the binary framework, swift files is not a must.

Again, read README and #108, it explains well I think.

@xdf103
Copy link
Author

xdf103 commented Jul 13, 2015

Thanks @liuxuan30 ! It works for iOS7.0 after I added "import UIKit" to all the swift files.

@liuxuan30
Copy link
Member

@xdf103 you are welcome. However, you should not add import UIKit for every file I think... only a few are missing.

@liuxuan30
Copy link
Member

close this if you no longer have such issue.

@xdf103 xdf103 closed this as completed Jul 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants