Button Application- iPhone Application - iphone

I am a meganoob in iPhone Application programming.
All I want to do is make an application with a single button. When you press the button, it plays an audio file.
The button is just two images, one for the normal state and one for the pressed state.
I have no clue how to get from point A to point B, it seems so straightforward in web design, why can't it be like that for this too?
Anyone out there willing to drop some hints?

iPhone development is nothing like web design. Nearly all programming is not like web design, for that matter.
Start with a good introduction to iPhone development.
To answer this specific question, once you have learned the basics of iPhone development, you might look at the Audio Session portion of the SDK. You'll know how to hook up actions to buttons at this point, such as a play action for an audio file.

Then do this as a web app. Seriously. Originally, that was Apple's solution to writing all apps for the iPhone. They gave it an HTML 5 browser and wanted people to design custom web pages. So if you can do this on the web (BTW: I could not but could do this in Objective-C in little time), do it that way.
You can create a link to your web page on the homescreen so it looks like an app.

start from hello world for iPhone dude

Related

Iphone storyboard application with game in webview

I made a HTML5 game for web browsers. Some of the players asked me if I could make it available as an App. Now I have a developer key, but just a VERY basic knowledge of Xcode / objective-c and I dont actually own an Apple computer. (But I can run Leopard/Xcode in VMWare).
Is it very bad practice to make a storyboard application that basically consists out of a splashscreen and a webview that loads my html game page with some added js/css to match the resolution?
Will Apple allow a game developed like this? It seems way easier to update etc...
Can I remove the bottom status bar from a webview using the meta tag? Or does that just work in safari, and will localstorage work?
Are there other, better, faster ways to port html5 to an app?
Sorry for the huge amount of questions, but I couldnt find satisfactory answers to all my questions, and I guess more people will have the same...
gr
Let me try to help you:
No, its not a "bad practice", but maybe for your app it's simple to do just a normal Single View Application. It doesn't mean that it's going to be wrong doing a storyboard, it;s just simpler.
Your App is only going to open a WebView with an URL, so, if you dont do anything weird, it's not going to be rejected.
If you are talking to the status bar, yes, it's possible to remove it easily.
I think that's the best way, just open a view with a webview on it. Another way is making your app call Safari with that URL, that's up to you (your app will go to the background and Safari will be called)
And an extra one: Its totally ok doing it with VMWare, I develop like that sometimes with my PC ;)

Good framework for iphone app user interface testing?

I am looking for tools that I can attach to the app that would allow me to test the user interface. I was thinking about something like a click map to see where users are touching in the application, or any other visual tools that help improving the touch and feel of the app. I am not referring to analytics like Flurry or Localytics. I am looking for something more like crazyegg.com but for iphone apps.
I am using heatma.ps in my apps. It lets you test where people touch in you application, which buttons are used more then other. It's pretty good about showing you what gestures users make on your application screen, like if they are trying to scroll down.
You would be surprised how people use your interface. I know I was shocked the first time I found that people don't see the help button that I spend hours to implement with help snippets. Oh well, people are different :-)

How to choose between a window , view or a navigation based application while developing for the iphone?

I am a complete newbie(as is already evident) and I can't just figure out when to choose what. I have been through countless googling operations but found no help on the said question, hence had to ask here. It would be great if any of you could explain or even point me to some online resource which does it. Thanks again for your time.
It depends what your app needs. I've made an app which is a series of questions in a survey. For that I used a navigation based app.
However I'm now working on a complicated app which uses a series of navigation controllers within a UITabBarController. So for that I chose to start a window based application because there was going to be a lot of custom programming involved and that was the "cleanest slate" available.
Think about what you need your app to do, and remember the different projects you can start are all basically the same and you can always change them to suit your needs, its just what they all start with included thats different.
I would always recommend to start with Window based application template.
From a window based iPhone app, you can make any kind of iPhone application.
To learn:
I would recommend iPhone Programming: The Big Nerd Ranch Guide
Get the Kindle version for your Mac - Kindle for Mac
alt text http://img408.imageshack.us/img408/3245/bnr.th.jpg

Embedding an offline Dashcode application in a UIWebView in an iPhone application

In order words, can anyone tell me the basics of how to create a "hybrid" iPhone application? I want to load the web content (the Dashcode app itself) from the native application's application bundle.
I've gotten this to partially work, but some content won't display and it otherwise seems like Dashcode is assuming a certain Safari environment or something that I don't seem to have in my UIWebView.
Can anyone provide a link to some sample code that embeds a Dashcode project into a cocoa touch Xcode project?
(I did search around Google for a bit trying to find something and I failed to come up with anything worthwhile, except for some books that I might eventually buy if the approach seems worthwhile.)
After a while I answered my own question here. It looks like http://quickconnect.sourceforge.net/browser/index.html will show me want I want to know even if I don't actually use the framework.

iPhone-SDK: How to make iPhone format website?

Is it possible to make my own website as iPhone friendly format when user launches my website in an iPhone browser?
Currently if i launch my website in iPhone, it doesn't look more readable and i need to zoom it to see clearly. If i want to provide my website link will be more clear and readable with bold fonts and buttons ( moreover it is like iPhone friendly format) in the first launch itself in iPhone browser, how to make it success? I could able to see some third party websites like http://tringapps.com and all provide the same logic. How to achieve this and what should i do for that? Where to code?
Clave/
You'll need to make a separate version, or at the very least an extreme re-CSSing of your existing site.
Apple has some good tips on getting started here.
There are several toolkits to assist in developing the web apps as well, like this and even this.
There is a good book to get started. Building Applications for Mobile Safari
There are many PDFs available from Apple.