iphone

NSURL URLWithString: raises exception

In short, [NSURL URLWithString:] appears to be raising an exception. According to the documentation "If the string was malformed, returns nil." There is no mention of an exception being raised under any circumstance. In addition to this, I am both encoding the URL and checking for nil before converting the string to a URL. Can anyone of...

Correctly Rotating a UITableView with Transform without messing around with Interface Builder

UiTableView does not provide Horizontal Scrolling in landscape mode. My UiTableView is not full screen (So I cannot just use it horizontal mode while rotating my content, which are pictures) I found that to rotate my UiTableView using Transforms.. I have to position it in Interface Builder in some weird position so that when rotated, ...

Record "Apple lossless" audio on the iPhone

Hello, could you point me to docs/snippets/blogs, which explain how to record Apple lossless audio files on the iPhone, please? I've inspected the audio recorder example from the Apple Dev Center, but couldn't figure out, which setting I have use for lossless audio. Regards, Stefan ...

Any recommended iPhone script/code editor apps out there?

I'd like to write code even when I'm not at my desktop machine. Any recommended iPhone script/code editor apps out there? I'm not meaning desktop applications like XCode for writing iPhone apps. I'm meaning iPhone apps cause I want to write code on iPhone. (any code like java c ruby etc and doesn't limit to writing codes for iPhone.....

How do I serialize a simple object in iPhone sdk?

I have a dictionary of objects; they are all POCO objects that should be serializable. What technique should I look at for writing these to disk. I'm looking for the simplest option to write a few lists to save state. I think I have 3 options. plist files. However this seems to be limited to only storing predefined objects (strings...

What are the pros and cons to use iPhone/Android phones to write scripts?

What are the pros and cons to use iPhone/Android phones to write scripts? I'd like to buy a new mobile phone which I can utilize my time to do some scripting even when I'm not at my desktop computer. I heard that you can't save files to your iPhone unless you jail break it. This maybe a big problem if I want to create some new scriptin...

udocumented apis for the iphone that went through

Has anyone created an iphone app with "undocumented apis" and made it through approval? If so, could you share your processes to the world and any follow-up responses to apple review that may have made your case? all the best. ...

Default.png

Ok. I've got an openGL ES application up and running on the iPhone. And my project has a Default.png to show something other than a black screen on powerup. This image appears when I compile a DEBUG version for the simulator and the device. If I do a compile for the DEVICE in RELEASE mode, the image does not show up (black screen ins...

UIActionSheet not responding to touches

I have a UIActionSheet that I set up like this: -(void)trash:(id)sender { UIActionSheet *sheet = [[[UIActionSheet alloc] initWithTitle:@"Delete" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Remove text" otherButtonTitles:@"Remove tags", nil] autorelease]; [sheet showInView:self.view]; } The sheet appears from t...

Black status bar turns white when quitting iPhone app

I gave my iPhone app a black status bar by adding the UIStatusBarStyleOpaqueBlack / UIStatusBarStyle to the Info.plist file. It works great most of the time. The black status bar shows when the app is running and when the Default.png is being shown. The issue is when I quit the app by pressing the home button, the status bar becomes a ...

Dijkstra algorithm for iPhone

Hello all! It is possible to easily use the GPS functionality in the iPhone since sdk 3.0, but it is explicitly forbidden to use Google's Maps. This has two implications, I think: You will have to provide maps yourself You will have to calculate the shortest routes yourself. I know that calculating the shortest route has puzzled ma...

How can I display the application version revision in my application's settings bundle?

Hi to all, I would like to include the application version and internal revision, something like 1.0.1 (r1243), in my application's settings bundle. The Root.plist file contains a fragment like this... <dict> <key>Type</key> <string>PSTitleValueSpecifier</string> <key>Title</key> <string>Version</string> <key>Key</key> ...

Is there a way to figure out, how many degrees an view is rotated currently during an animation?

I am applying an rotation transform animation in an animation block with this transform: CATransform3D rotatedTransform = self.layer.transform; rotatedTransform = CATransform3DRotate(rotatedTransform, 90 * M_PI / 180.0, 0.0f, 0.0f, 1.0f); self.layer.transform = rotatedTransform; The animation begins, and the user kicks in another even...

Game Slow down issue.

Hi all, I am developing a game in which i have to move the ball and power up image simultaneously. For move a power up image view, I create a separate thread and call move method of power by using [self performSelectorOnMainThread:..], this is required to show the updated position on view. But my Game slowdown after creating this thread...

How can i hidden statusbar in iphone OS 3.0 ?

i have a iphone application where i use image pickerview for select the photo from iphone photo library.In Info.plist file i use statusbar hidden. In iphone OS 2.2.1 statusbar are not show.But when i debug this application in iphone OS 3.0 then statusbar are shows.But not at the beginning shows when i call imagepickerview for select phot...

UIScrollView touches vs subview touches

Please can someone help sort a noob out? I've posted this problem on various forums and received no answers, while many searches for other answers have turned up stackOverflow, so I'm hoping this is the place. I've got a BeachView.h (subclass of UIScrollView, picture of a sandy beach) covered with a random number of Stone.h (subclass o...

Reordering UITableView sections on the iPhone by dragging (like reordering rows)

Is there anything currently in the SDK that allows for re-ordering of tableView sections? As in, move the entire section below or above an adjacent section? This is plausible with individual UITableViewCells. Haven't seen it done for sections though. ...

Memory Management of Variables on iPhone

I know this is a basic questing but I am just not finding a good answer. I have a app with multiple view controllers and I have noticed that if a create a variable and take action on it in one controller: int foo = 0; foo =+ 1; I can declare the variable in another controller without initializing it's value it will carry the value it...

Touches on transparent PNGs

I have a PNG in a UIImageView with alpha around the edges (let's say a circle). When I tap it, I want it to register as a tap for the circle if I'm touching the opaque bit, but a tap for the view behind if I touch the transparent bit. (BTW: On another forum, someone said PNGs automatically do this, and a transparent PNG should pass the...

Create a PDF for iPhone, how to?

Hi, I'm trying to write a eBook, for the iPhone, using PDF format. The problem is, I can't create a PDF with 5 cm x 5 cm (example). I've tried Adobe Acrobat Pro 9. Didn't work, since it is not possible to custom the paper size. I've tried Pages 08, but it's also not possible (it's possible to set the custom size, but it doesn't work...