This question is locked. New answers and comments are not allowed.
HI i started using UI for iOS . i downloaded the framework i added in General ->linked frameworks and Libraries (TelerikUI.Framework).I also added "/Users/subinkuriakose/Documents/Telerik" in BuildSettings
I created project using swift and i copied chart example given below .
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let chart = TKChart(frame: CGRectInset(self.view.bounds, 15, 15))
chart.autoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight
self.view.addSubview(chart)
var randomNumericData = [TKChartDataPoint]()
for i in 0..<10 {
randomNumericData += TKChartDataPoint(x: i, y: Double(arc4random() % 100))
}
chart.addSeries(TKChartLineSeries(items: randomNumericData))
chart.title().hidden = false
chart.title().text = "This is a chart demo"
chart.legend().hidden = false
chart.allowAnimations = true
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
unresolved identifier TKchart . is anything i need to add or not please help
I created project using swift and i copied chart example given below .
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let chart = TKChart(frame: CGRectInset(self.view.bounds, 15, 15))
chart.autoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight
self.view.addSubview(chart)
var randomNumericData = [TKChartDataPoint]()
for i in 0..<10 {
randomNumericData += TKChartDataPoint(x: i, y: Double(arc4random() % 100))
}
chart.addSeries(TKChartLineSeries(items: randomNumericData))
chart.title().hidden = false
chart.title().text = "This is a chart demo"
chart.legend().hidden = false
chart.allowAnimations = true
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
unresolved identifier TKchart . is anything i need to add or not please help