iOS source code: Chart library developed in Swift

iOS source code: Chart library developed in Swift

Functional classification: Other

Supported platforms: iOS

Operating environment: iOS

Development language: Object-C

Development tools: Xcode

Source code size: 84.80KB

Source code download address: http://down..com/data/1982906

Source code introduction

A simple and easy-to-use beautiful chart library developed in Swift language, requiring Apple frameworks: Foundation.framework, UIKit.framework, CoreGraphics.framework, QuartzCore.framework
Please modify some Swift codes according to your own Xcode~

Source code running screenshot

Run Chart

Source code snippet

  1. func tableView(tableView: UITableView!, didSelectRowAtIndexPath indexPath: NSIndexPath!) {
  2. var viewCon: UIViewController = UIViewController()
  3. viewCon.view.backgroundColor = UIColor.whiteColor()
  4.           
  5. var chart: PDChart!
  6.           
  7. switch indexPath.row {
  8. case 0:
  9. var lineChart: PDLineChart = self.getLineChart()
  10. chart = lineChart
  11. viewCon.view.addSubview(lineChart)
  12. case 1:
  13. var pieChart: PDPieChart = self.getPieChart()
  14. chart = pieChart
  15. viewCon.view.addSubview(pieChart)
  16. case 2:
  17. var barChart: PDBarChart = self.getBarChart()
  18. chart = barChart
  19. viewCon.view.addSubview(barChart)
  20. default :
  21. break  
  22. }
  23.           
  24. chart.strokeChart()
  25.           
  26. self.navigationController.pushViewController(viewCon, animated: true )
  27. }

Source code download address: http://down..com/data/1982906

<<:  iOS source code: annual calendar showing events

>>:  What does Ubuntu Phone mean for the open source world?

Recommend

Can art be created on the tip of a knife? Exquisite ivory carving

The original ivory with carved floral patterns is...

Some common problems about website filing in Yinchuan

Those of us who build websites in Yinchuan all kn...

Understand the September 18th Incident in one breath!

This article was first published by Hunzhi (WeCha...

Marketing activities: activity intensity decision

For big promotions, the intensity of the activity...

There is a lot of foam in the urine. Is it really caused by proteinuria?

"Doctor, I noticed a lot of bubbles in my ur...

Your back pain may be related to crossing your legs

Part 1 Your back pain may be related to crossing ...

Will I be iodine deficient if I stop eating seafood?

In the age of universal iodine supplementation, p...

Three information models for advertising planning!

In an advertising company, you will always encoun...

Product activity operation and promotion planning plan!

Activities are a very important way to quickly at...