Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

How can I create gantt chart in iPhone view Objective C?

  • Ios

  • objective C


Results are only viewable after voting.

johnnymacrumor

macrumors newbie
Original poster
Jun 8, 2015
8
0

Attachments

  • 1.png
    1.png
    49.8 KB · Views: 4,719
You've asked about several different topics. IQWidgets is not related to MonoTouch. Apparently IQWidgets is a set of iOS classes made available by someone who thinks they may be of use to others. One of the classes is a Gantt chart view. MonoTouch is a tool for writing iOS apps but not using native code. I think it uses C#. The bindings that are mentioned would connect the IQGanntView to be available in MonoTouch.

If your goal is to write an iOS app using MonoTouch that is probably off-topic for this forum.

If your goal is to write an iOS app using Xcode and Objective-C or Swift then this forum is probably the right place.

There is an example project in the IQWidgets repo on github. Did you run that project to see what the Gantt chart looks like there? Is that what your screenshot is from? The comments in the ReadMe file there suggest that IQWidgets is being updated but the last commit was over a year ago.

If you want to write a Gantt chart view from scratch that may be beyond the abilities of a beginner.
 
  • Like
Reactions: johnnymacrumor
I want create gantt chart View Like screenshot! I don't know how can I draw it?
 

Attachments

  • 1.png
    1.png
    49.8 KB · Views: 339
Two paths you can take:
1. Write the code yourself. This can be hard, but can also be a great teacher. If your need are pretty basic, I'd look at writing something yourself. It sounds like it could be a great teacher of OO concepts.

2. Download code that already does this. I remember someone posting something about charts a while back, but I don't remember the resolve. GitHub probably has something, maybe a google search for a blog/tutorial.
My guess is that there's several to choose from, if you can find an open source that's supported and uses latest tech, you'd probably be best off.
 
  • Like
Reactions: johnnymacrumor
Two paths you can take:
1. Write the code yourself. This can be hard, but can also be a great teacher. If your need are pretty basic, I'd look at writing something yourself. It sounds like it could be a great teacher of OO concepts.

2. Download code that already does this. I remember someone posting something about charts a while back, but I don't remember the resolve. GitHub probably has something, maybe a google search for a blog/tutorial.
My guess is that there's several to choose from, if you can find an open source that's supported and uses latest tech, you'd probably be best off.
Thank KarlJay
But I don't any idea to draw it for my project !
I try to research from internet!
I try use to some library to draw it example(Core plot, quartz 2d,...) but I can't draw it!
I'm new developer IOS! when I have some problem! I can research an fix it!
But draw gantt chart in Objective C it really new to me! So I don't have any Idea to start!
I don't know how can I do it! if you have any Idea! Can you show me!

Thank!
 
I'd start with looking at how you want to draw this. If you want to pull the data from a file or have them input the data or what.

I'd setup a data file, maybe coredata or a text file with the data in it.

Write the program to draw one rect from the data in the file.
Then make a loop so that it can read the data and draw the rect.

I'd start with some of the example programs that Apple has in their document help files in Xcode. Other sources would be online tutorials.
 
I'd start with looking at how you want to draw this. If you want to pull the data from a file or have them input the data or what.

I'd setup a data file, maybe coredata or a text file with the data in it.

Write the program to draw one rect from the data in the file.
Then make a loop so that it can read the data and draw the rect.

I'd start with some of the example programs that Apple has in their document help files in Xcode. Other sources would be online tutorials.
Thank! KarlJay Verry Much
I will try it! I will try more and more!
Thank you!
 
Not sure why this thread has a poll. Especially since the choices are iOS and Objective-C. These are not mutually exclusive. In fact, they are quite related. @johnnymacrumor, would you care to explain why you picked those choices?
 
Great! You might want to post some details about how you did this, sometimes people search these threads and if you post details of the solution, you can help someone else that has the same question.
 
  • Like
Reactions: PradeepReddyKypa
Great! You might want to post some details about how you did this, sometimes people search these threads and if you post details of the solution, you can help someone else that has the same question.
Ok KarlJay
I will up it to Forum when I complete it!
 
Core Plot! it not help me to draw gantt chart
Hi johnnymacrumor,

Have you uploaded the solution that you came up with.. I am using tableviews and CollectionsViews but I am kind of lost as to how to update labels on the timeline.

Thanks,
Soniya
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.