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

Xiaohongshu advertising account opening process, Xiaohongshu advertising charges

Xiaohongshu has become another marketing platform...

iOS 12 first public beta released to see if it is worth upgrading

Apple has officially pushed the first public beta...

Summary of the key Android interview questions

1. Please explain the relationship between Messag...

2018 Global & Chinese Search Engine Market Share Rankings!

After doing promotion for so long, do you know wh...

Don’t thaw the meat in water anymore, there are only 3 correct ways to do it!

Do you have a lot of frozen meat in your refriger...

Template for planning fission activities!

1. #Split the wheel lottery game and get a gift b...

Snapdragon 820 version of Samsung S7 latest running score exposed: a new high

As the release is approaching, Samsung S7 is also...

It’s not that I’m judging by the face, but this monkey looks really weird!

Recently, a monkey has become an Internet celebri...

FOTILE Double 11 advocates planting trees to retain APEC blue

Last night, when I returned to Beijing from a bus...

Weekly Science Talk|Little Lactobacillus can also achieve great things

Lactic acid bacteria are a type of bacteria that ...

How do e-commerce operations build a closed marketing ecosystem?

With the continuous development of society, many ...