iPhone SDK: Creating a menu - iphone

I'm developing a few arcade games. Unfortunately, all of them lack a menu. What's the best way to create a menu for an iPhone game?

I think you want a grouped style UITableView with a custom header/footer. You can also customize the UITableViewCell as well.
Check out this link, he creates the menu you are looking for fairly easily: http://iosdevelopertips.com/user-interface/creating-unique-looking-tables-with-custom-cells.html.

I would create a custom class that inherits from a UIView. Just make the UIView as big as the screen when you load it and bring it to the front. Then you can customize your screen and make it look good rather than boring and tasteless like the one above.

Related

How to implement a static menu bar in an UIPageviewcontroller?

im trying to build in a static menu bar in my uipageviewcontroller like youtube has. Does anyone know how to implement it ?
What are you asking for is not part of the iOS SDK. As you will see the more you program, there is not point in hacking the SDK here and there to make visual elements look and behave the way you want. You're better off creating custom views in NIBs (or in code if so your heart desires), plugging the behavior you want into them, and use that instead of the SDK.
If you do want to use a UIPageViewController, here is a tutorial you can refer to for inspiration. The UISegmentControl can easily be replaced bya view of your own. Good luck!
EDIT: I realized I forgot how to include the link. Here you go: Switching controllers with a UISegmentedControl

Create animation like 3D TableView

I want to create UITableView like Zime Android application.
I don't want code but want some advise that how can we create this type of UITableView in iPhone application.
Please suggest.
Not exactly what you want but may be a little better. Check this library named Scroller
You can customise it to have the effect you want instead of building from scratch.

Navigation based iPhone app using thumbnails

I've been searching the internet for quite some time and didn't find anything useful.
I want to make a basic app for the iPhone using simple views and hierarchical data nothing too fancy. The only problem is that I can't seem to find any tutorial that makes the first/main view like a thumbnail gallery that leads to other views.
To clear it a bit up:
I want my first view to be a 2D array of thumbnails and a little text below each of these thumbnails. When I click on a thumbnail it takes me to a sub-view containing more detailed info and options.
So is there any relatively painless way to make something like this using Table Views or something like that or do I have to make a custom view with methods to populate it as my heart pleases.
Please take note that I want to avoid any third party libraries like Three20 or similar.
Thanks
Just to make sure I understand, you want to make an application that acts similar to the Contacts on the iPhone? In other words, a list that when an item is clicked will take you to a new view with detailed information about the clicked item? But in your case, you want an image next to/above the text?
In either case, you will want to use a tableView. If you want an image beside the text, just set the imageView.image property of the cell to a corresponding image. If you want a different layout, however, you will need to create your own custom UITableViewCell, which is not a hard task at all. Here is a tutorial on how to create a custom cell using IB. It can also be done programmatically if you prefer to do it that way. I hope this helps to solve your problem.

Customize UI with UIWebView vs Subclassing

I need to create a custom button, custom label, custom tableview, and custom datepicker, but it seems harder to subclass the button/label/table/datepicker than to create a HTML string inside a UIWebView and customize it there... My application would be full Objective-c except these 4 controls.
What does Apple say about customizing a control using UIWebview. Is it frowned upon?
What are pro & cons for these 2 approaches?
Should I take a quick HTML, but it feels like I'm cheating, or take a long process to subclass these controls? More importantly, will Apple approve my apps with controls that's using UIWebView?
Thanks.
I'm sure Apple would approve an app with HTML controls, but I'd strongly advise you do it right and subclass the controls you wish to customise (or create your own from scratch). In my experience, native controls are leaps and bounds above what you can achieve with HTML and CSS, and it'll be worth it in the long run.
Besides, UILabels, UIButtons, and UITableViews are actually quite easy to customise; you may have some difficulty with the UIDatePicker but it's still possible to make it your own.
Ok, just in case somebody is having the same problem as me, I finally found another easy way to "customize" the view without going into so much trouble subclassing it..
It's : Use an image to be used as the view background. Then you can place the controls in the placeholder in the image. And set the controls as transparent...

iPhone: add badge to icons internal to my app

I am trying to add badges to the icons in my app. e.g. in the facebook app, in the home page the number of pending requests is shown on the requests icon.
Can someone provide any links/ideas on how to do this?
Thanks,
V
I know this article is a little bit old, but it helps me recently to make a little class to create custom badges. I thought it would be fair to make this class public for everyone. So here it is CustomBadge.
best regard
- Sascha
Lots of ways to do this. You can overlay a UILabel over the icon (which may be a UIView or UIImageView). YOu can put another view on top of the icon, and draw the text right into that view. Or make your icon view be a subclass of UIView, and when you get called to draw, you draw the icon and the number.
Plus, you may want to play with blend modes, shadow, masking, etc., in order to create something that is visually attractive.
I'd probably start with reading more about Quartz, if you haven't already. The rest is just how you wire it all up.
And some other links:
http://scientificninja.com/development/numeric-badges-on-the-iphone
http://th30z.netsons.org/2009/03/qt4-drawing-notification-badges/
alt text http://th30z.netsons.org/wp-content/uploads/qtdrawbadges.png
The Three20 project (its code is part of the Facebook app) has those badges.