How to create bar chart using QuartzCore? - ios

I'm creating an app where i need a bar chart.For a question we'll be having 4 or 5 options. I want to show the number of options selected by the users in a bar chart(like 10 members selected option A, 5 members option B etc). How to do it using Quartzcore? Please help me

Have a look at CorePlot, you have a good tutorial there (maybe a liitle outdated but still usable)
http://www.raywenderlich.com/13269/how-to-draw-graphs-with-core-plot-part-1
http://www.raywenderlich.com/13271/how-to-draw-graphs-with-core-plot-part-2

Related

iOS custom Time Picker l

I want to create time picker in iOS like following image
Please suggest me any available framework or way to achieve this type of timer in iOS.
In this image when user click on red circle and drag to the number what he want to set.
For example In given image currently it is 12 i.e 12:00AM if I dragged to 4 then Time should be 04:00 AM
I was also in need of exactly same component so i created one.
Please check the below link...
Here's Link 2 Component
I have given provision of theme in my project, for you requirement you need to set isDarkTheme to TRUE.
Hope this is as per expectations....
Feel free to vote if you like my answer/Project.
Simple and pretty standard stuff can be done with little core graphics or UIDynamics for animation, present controller as model view
Maybe you were looking for this one - ESTimePicker. It is under BSD license, so you can use it in commercial projects...

how to resize iphone tab bar in xcode?

I'm developing an iOS app that has 5 items in the tab bar. But they are not evenly distributed. I want the right-most one to be larger and obviously it takes more spaces. and other 4 tab items can evenly distribute.
I've done some research but cannot find a good solution. Where can i customize the tab bars?
thanks
You can't do this with the standard iOS tab bar. You need to create a custom one or use one of the numerous open source libraries that do it already.
You can use UISegmentedControl. It is highly customizable and allows to modify width of each item in it.

Does xcode support tab controls?

I am developing a dashboard system which I need to split the app's screen into 4 blocks. Each block needs to have a page/tab control with different tabs such as day, month, week, etc
Is this not supported in xcode? I can only see references to a tab control where the tabs are at the bottom of the app's screen
Can you please try one of the control here in http://www.cocoacontrols.com/tags/tab?
I strongly recommend sticking with the tabs at the bottom. If you want them at the top you will have to implement your own solution or find one by someone else.

IOS facebook app slide option menu [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
SplitView like Facebook app on iPhone
I need a control that will split a screen into 2 different views when click.
It is kind of like this [1]: http://i51.tinypic.com/2112zwh.png
I had used inferis/view deck but it screw out my navigation controller.
Basically it can't perform any segue
I am using StoryBoard with navigation controller and also tab controller.
Anyone has any idea how to have this kind of menu but works with storyboard and navigation controller, tab controller?
I made a video (3 parts) on youtube on how to make a sliding menu like the on you are looking for. I show you how to set up the project and get everything linked up.
http://www.youtube.com/watch?v=tJJMyzdB9uI
You will have to create UINavigationControllers instead of plain UIView controllers if you want to use that tutorial, but its basically just selecting one or the other.
The cool thing about ECSlidingViewController (Its the one I use) is that just about everything you want to configure (how far a view slides, the animations, left or right side) is done with a single line of code (sometimes 2 or 3 lines)
Try it out and see if it works for you?
I used the JTRevealSidebar Project to build mine. I used storyboards, and segues in my project and got everything working without any troubles. Take a look at the demos, and it should be pretty easy to implement. If you have any specific issues when you do get it implemented feel free to post questions about your issues.

More than one tab bar in an app?

I have developed an app that has work successfully for the last 4 months using iOS 4.3 and under. Since iOS 5 however the tightening of view hierarchy has left my app dead in the water. The app starts with a tab bar as its main view with 5 tabs. When the user selects a row on a tableview on the first tab it pushes onto another tabbar with 3 tabs which gives specific information about that selection. This structure worked fine but obviously broke when testing on iOS 5.
My question is: Is it bad design to utilize 2 or more tab bars in one application? I don't mean "bad design" in the grand scheme of things because that is subjective. I mean in a practical sense where it is specifically forbidden or not recommended.
have a look at this:
iOs Human Interface Guideline
Yes, I think that it's not recommended.
For example:
Use a tab bar to give users access to different perspectives on the same set of data or different subtasks related to the overall function of your app. When you use a tab bar, follow these guidelines:
Don’t use a tab bar to give users controls that act on elements in the current mode or screen. If you need to provide controls for your users, use a toolbar instead (for usage guidelines, see “Toolbar”).
In general, use a tab bar to organize information at the application level. A tab bar is well-suited for use in the main app view because it’s a good way to flatten your information hierarchy and provide access to several peer information categories or modes at one time.

Resources