iphone

How can I make my ad hoc iPhone application's icon show up in iTunes?

I've got an iPhone app with icon file Icon.png. This icon shows up properly when the app is on the phone itself, but it doesn't show up in the applications pane in iTunes. What do I need to do to get it to show up properly? ...

Getting started with mobile programming. What is a good platform ?

What is a good mobile programming platform to go with for a c++ developer? Is learning android a good option? ...

How do I stop a UIScrollView from bouncing horizontally?

I have a UIScrollView that shows vertical data, but where the horizontal component is no wider than the screen of the iPhone. The problem is that the user is still able to drag horizontally, and basically expose blank sections of the UI. I have tried setting: scrollView.alwaysBounceHorizontal = NO; scrollView.directionalLockEnabled = YE...

UITableView didSelectRow while editing?

Hi, I'm building an interface much like the built-in Weather application's flipside view, or the Alarms view of the Clock application in editing mode. The table view is always in editing mode, so the delete icon appears on the left side of each cell. When the table view is in editing mode, my delegate doesn't receive didSelectRowAtInde...

What class handles the popup/notification windows on iphone?

I'm looking for the class name of the popup/message windows on the iPhone (it's a blueish window that comes up when you have a missed call, or a message comes in for example.) ...

How do I hook up a referencing outlet in Interface Bulider for a UIImage?

I want to access a UIImage programmatically... i.e. myImage.hidden = TRUE; etc. I can do this fine for UILabel but when I repeat the process for UIImage it doesn't work. Specifically when I drag the blue line in Interface Builder over the icon I don't get a popup menu like I do when using UILabel. Perhaps using UIImageView instead of ...

Skipping the 'CompressResources' build step for XCode iPhone apps

Is it possible to set an iPhone XCode project to skip the 'CompressResources' build step? Specifically, I want to skip the stage where it runs pngcrush on all of my .png files, many of which don't survive the experience in a form which my app can read. Edit: the version of pngcrush used creates png files which contain a non-standard 'm...

What's the best way to find out the installed version of the iPhone SDK?

What is the easiest way of finding out what version of the iPhone SDK is installed on my OS X? When you log into the Apple's iPhone Developer Center, you can see the build number of the current available version of the SDK, but you have to remember if you have already downloaded that version or not. What is the easiest way of staying ...

How to Implement Ocean Surface Effect Using OpenGL ES 1.1?

I'm working on an iPhone game that takes place on the ocean surface. Can someone recommend some sample code or tutorials for implementing waves or ripples in OpenGL? iPhone supports OpenGL ES 1.1, so there is no support for shaders or other fancy effects. I don't need anything too fancy. I don't need reflections, for example. I don'...

Way to discover which internet connection type I'm using on the iPhone

I need to know what internet connection is available when my application is running. I checked out the Reachability example from Apple, but this differs only between wifi and carrier network. What I need to know is what carrier network is selected, UMTS or EDGE or GPRS. ...

How to save picture to iPhone photo library?

What do I need to do to save an image my program has generated (possibly from the camera, possibly not) to the system photo library on the iPhone? ...

How can I find the Rect of wrapped text on an iPhone?

Can anybody recommend a good method for determining the Rect of some wrapped text on an iPhone? I've tried all the built-in methods for NSString in the 2.1 SDK to no avail. The size methods never return sizes that allow me to completely fit wrapped text in my custom view. I'm drawing some user customizable text that should always be a...

What might this gdb output mean?

Trying to create my first iPhone app that would play back audio. When I try to set up playback, messages like these appear in gdb: =shlibs-removed,shlib-info=[num="54",name="AudioIPCPlugIn",kind="B",dyld-addr="0x2c2000",reason="dyld",requested-state="E",state="E",path="/System/Library/Extensions/AudioIPCDriver.kext/Contents/ Resources/...

How can I add an additional "view" to my iphone app?

I have a simple iphone app that's based on the CrashLanding sample app. So basically you tap the title screen and do some stuff... all on the same "view". I want to add an "options" screen/page/view whatever with a few UISwitches. What's the easiest way to do this? Cheers! ...

Can any of the iPhone collection objects hold an image?

Actually, I wanted a custom cell which contains 2 image objects and 1 text object, and I decided to make a container for those objects. So is it possible to hold a image in object and insert that object in any of the collection objects, and later use that object to display inside cell? Thanks in advance. ...

Determining when an EDGE connection comes back after a dropout on an iPhone

I've incorporated Apple's Reachability sample into my own project so I know whether or not I have a network connection - if I don't have a network connection, I don't bother sending out and requests. I decided to go with the status notification implementation because it seemed easier to have the reachablity updated in the background and ...

Is there a documented way to set the iPhone orientation?

I have an app where I would like to support device rotation in certain views but other don't particularly make sense in Landscape mode, so as I swapping the views out I would like to force the rotation to be set to portrait. There is an undocumented property setter on UIDevice that does the trick but obviously generates a compiler warni...

xCode Performance Tool thinks the iPhone simulator has a camera

When I run this code in the Simulator in the debugger or standalone [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera] it tells me the camera is not available (returns NO), as expected. However, if I run the same code in the simulator in Performance Tool, it returns YES! My code (which works fine ...

How do I play background music in my iPhone game?

The official iphone docs aren't bad, but I'm finding them pretty unhelpful on this subject - all I can find is an API for playing midi files, but that's not what I want. I just want to play an MP3 in the background. And if the user is already playing their own music, obviously I don't want to play my own on top of it. Is there a "correc...

Linking File's Owners and View Controller [iPhone SDK]

I seem to be having an issue with iPhone SDK 2.1 in as far as being able to establish a relationship between a ViewController and a View window. In as far as a Cocoa Touch Class, I went forward and added a UIViewController subclass. I made sure that the target is part of the existing project. Right afterwards I added a User Interfaces ->...