How can I draw gantt chart in IOS Objective C

Discussion in 'iOS Programming' started by johnnymacrumor, Jun 8, 2015.

?

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

  1. Ios

  2. objective C

Multiple votes are allowed.
Results are only viewable after voting.
  1. johnnymacrumor macrumors newbie

    johnnymacrumor

    Joined:
    Jun 8, 2015
    #1

    Attached Files:

    • 1.png
      1.png
      File size:
      49.8 KB
      Views:
      659
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    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.
     
  3. johnnymacrumor thread starter macrumors newbie

    johnnymacrumor

    Joined:
    Jun 8, 2015
    #3
    I want create gantt chart View Like screenshot! I don't know how can I draw it?
     

    Attached Files:

    • 1.png
      1.png
      File size:
      49.8 KB
      Views:
      131
  4. 1458279 Suspended

    1458279

    Joined:
    May 1, 2010
    Location:
    California
    #4
    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.
     
  5. johnnymacrumor thread starter macrumors newbie

    johnnymacrumor

    Joined:
    Jun 8, 2015
    #5
    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!
     
  6. 1458279 Suspended

    1458279

    Joined:
    May 1, 2010
    Location:
    California
    #6
    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.
     
  7. johnnymacrumor thread starter macrumors newbie

    johnnymacrumor

    Joined:
    Jun 8, 2015
    #7
    Thank! KarlJay Verry Much
    I will try it! I will try more and more!
    Thank you!
     
  8. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #8
    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?
     
  9. 1458279 Suspended

    1458279

    Joined:
    May 1, 2010
    Location:
    California
    #9
    LOL, I guessed that to be a mistake, but didn't say anything :D
     
  10. PBG4 Dude macrumors 68000

    PBG4 Dude

    Joined:
    Jul 6, 2007
  11. johnnymacrumor thread starter macrumors newbie

    johnnymacrumor

    Joined:
    Jun 8, 2015
    #11
    Sorry! I will edit it!
     
  12. johnnymacrumor thread starter macrumors newbie

    johnnymacrumor

    Joined:
    Jun 8, 2015
    #12
    Hi!
    I have draw it! I use UICollectionViewController and Calendar it help me draw gantt chart timeline easy
     
  13. 1458279 Suspended

    1458279

    Joined:
    May 1, 2010
    Location:
    California
    #13
    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.
     
  14. johnnymacrumor thread starter macrumors newbie

    johnnymacrumor

    Joined:
    Jun 8, 2015
    #14
    Ok KarlJay
    I will up it to Forum when I complete it!
     
  15. moonman239 macrumors 68000

    Joined:
    Mar 27, 2009
    #15
  16. johnnymacrumor thread starter macrumors newbie

    johnnymacrumor

    Joined:
    Jun 8, 2015
    #16
  17. PradeepReddyKypa macrumors newbie

    PradeepReddyKypa

    Joined:
    Jun 13, 2016
    #17
    Hi Johnny, Can you please explain in detail about How you have implemented the gantt charts ?
     
  18. SoniyaH macrumors newbie

    SoniyaH

    Joined:
    Jan 30, 2017
    #18
    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
     
  19. bigMoSkrilla macrumors newbie

    bigMoSkrilla

    Joined:
    Aug 18, 2017
    Location:
    Louisville, KY
    #19
    Hi! I'm having the same issue and have tried several different GitHub projects. Can you please say more about how you used Calendar and collection view to achieve this?
     

Share This Page