iphone

UIImageView animations slow

I've got a UIImageView with about 10 full-screen jpegs, totaling about 128k. Throwing these into the UIImageView with setAnimationImages works like a champion in the emulator until I try to run it on the iPhone which results in a fail. Is something wrong here? I would think with all the fancy 3d games I've seen my crappy little animat...

Making GET and POST Requests from an iPhone Application - Clarification Needed

I'm following along with this useful looking answer to my question. It seems to be working, but here are two questions I have: How do I detect an HTTP error? The didFailWithError method doesn't seem to be getting called? UPDATE: It considers any response a success. So I guess I have to handle HTTP errors in the didRecieveResponse m...

How to achieve full-scene antialiasing on the iPhone

I would like to achieve FSAA on my OpenGL ES app on the iPhone. Currently I do this by rendering the scene to a texture that is twice the width and height of the screen. I then use the nice function: void glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height); to draw the image resized to the screen resolution. Is there...

Iphone development resources

I've started to play with the IPhone SDK. What are the best resources to get started? (books, tutorials, blogs?) ...

iPhone - UIViewController not rotating when device orientation changes

I have got my own custom UIViewController, which contains a UIScrollView with an UIImageView as it's subview. I would like to make the image to auto rotate when device orientation changes, but it doesn't seem to be working... In the header file, I've got; @interface MyViewController : UIViewController <UIScrollViewDelegate> { IBOutle...

Hyperlinks within "about" text for iphone application

I'm on the final stretch of my first simple iPhone application. I'm building an "about" view, with credits/info/etc. I am failing on the simplest thing: how can I embed hyperlinks into the text? I'm current using a UIView with a UILabel for the text. I've looked on here, and the sample apps, but not got anywhere. Should I use a UIWebVi...

How to deal with compiler optimization problems

I'm having an annoying problem with my iPhone app. Whenever I set the optimization level to something other than "None", I get computation errors. This only happens in when building for the iPhone SDK (the iPhone Simulator is always fine). I wouldn't mind disabling optimizations in release mode, but the application is a tiny bit too s...

iPhone SDK: Set Max Character length TextField

Hi there, anybody know how I can set the maximum amount of characters in a TextField on the iPhone SDK when I load up the UIView ? ...

Paleted textures with 8-bit alpha channel in OpenGL ES

Hello! Can I get paletted textures with RGB palette and 8-bit alpha channel in OpenGL ES? (I am targetting the iPhone OpenGL ES implementation.) After peeking into the OpenGL documentation it seems to me that there is support for paletted textures with alpha in the palette, ie. the texture contains 8-bit indexes into a palette with 256 R...

iPhone accelerometer in web applications

I want my website to change its layout according to the device positon. The site has 2 layout types: vertical(height > width) ang horizontal(width > height). do you see any solution? upd: I don't see any complexity in changing the site layout. I want to know is there any event to handle. p.s. will iphone's browser change its orientatio...

How to link to apps on the app store

So I am creating a free version of my iPhone game. I want to have a button inside the free version that takes people to the paid version in the app store. If I use a standard link http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=300136119&amp;mt=8 the iphone opens safari first, and then the app store. I have used other...

NSDictionary initWithContentsOfFile: messes up NSDecimalNumbers, why?

In my iPhone app I employ NSDecimalNumber to store some some currency rate values. I pull the data from the web the first time the app is launched and then again when they become obsolete, and I store them in a NSDictionary; then I use writeToFile:atomically:. When the app is launched for the first time, my rate conversion method works ...

is there a command in terminal can build and install the iphone app in simulator without launching from xcode

as title, is there any terminal command can use to achieve this? i know xcodebuild install -configuration can compile our xcodeproj from terminal without lauching from xcode however the compilation files are under iphoneos but not in the iphone simulator, I'm hoping one of you smart-folk can help me out ...

Memory management when using sqlite database in iphone

Hi My application makes use of a SQLite database to store the user's inputs. The number of records in the input would go to around 100 records and I have a lot of SQL operations going on in the application. When I run the application with Object Allocations, it shows the sqlite library libsqlite3.0.dylib using up a lot of memory. Does ...

How to use afconvert to convert from .caf to .mp3 format?

Hello everybody. I am using the afconvert command line utility to convert an audio file from .caf to .mp3 format. I have used afconvert: afconvert -f 'MPG3 ' -d '.mp3' -v input.caf output.mp3 But this gives me the following error: Input file: input.caf, 19008 frames Error: ExtAudioFileSetProperty ('cfmt') failed ('fmt?') I have al...

Flip transition takes time

Hi I am using the example from TheElements sample code provided with the iPhone SDK to achieve flip transition between 2 views. The transition from the 1st view to the second is not as responsive as the one from second to first. I am not sure why this is happening. The transition does happen but takes almost double the time it should. ...

Developing for the iPhone outside Xcode

I'd like to develop and run my iPhone applications from the command line and my personal editor instead of having to use Xcode. So far I've been able to edit all the files in Emacs and run xcodebuild in the project to compile/link/etc. The next step would be to create a Makefile task to launch the iPhone Simulator with my current appli...

accessing image data from a bitmap given a pointer (on the iphone)

my problem is reading the pixel data correctly once i have the pointer so i have an image that takes up the whole iphone screen that has no alpha channel (24 bits per pixel, 8 bits per component, 960 bytes per row) and i want to find out the color of a pixel at a particular XY coordinate. i have the pointer to the data UInt8 *data = C...

How do you monitor network traffic on the iPhone?

We are looking for a Wireshark-like tool to use on the iPhone to test a 3rd party application before partnering with the 3rd party. Any suggestions? ...

How to get RGB values from UIColor?

Im creating a color object using the following code. curView.backgroundColor = [[UIColor alloc] initWithHue:229 saturation:40 brightness:75 alpha:1]; How can I retrieve RGB values from the created color object? ...