iphone

Better way to have a photo slider/thumbnails on iPhone?

I have a probaly large list of images and want something like the photo app but with custom toolbar. I wonder how do this. I see the sample of Apple http://developer.apple.com/iphone/library/samplecode/Scrolling/index.html but that not will work for a large set of images. I have a product list and some of my customer need download as m...

Releasing subviews

I have a UIScrollView that has multiple pages of information that are added as subviews to the scrollView. Each subView's controller is stored in a NSMutableArray in the scrollViewController. I have some memory leaks in the subviews, and I am trying to fix them by making sure that each subview controller's dealloc method is called. I'm ...

Concatenating NSArray contents with NSMutableString AppendString

I'm trying to iterate through an NSArray and keep getting a compiler error right when i try concatenating the contents of my array at position i to my NSMutableString instance.. It just tells me that there's a "syntax error before ;" which doesn't tell me a whole lot. at this line: [output appendString:[widget.children objectAtIndex...

What are the approaches for writing a simple clock application?

I am writing a small program to display current time on iPhone (learning :D). I came across this confusion. Is calling currentSystemTime ( eg: stringFromDate: ) on every second, parse it and print the time on screen is good? Would it be more effective to call the above routine once and manually update the parsed second every tick of yo...

Setting up glFrustumf in OpenGL ES..

I am having some trouble getting a perspective set up in OpenGL ES. Anyone have any tips? My ortho project looked like this: glOrthof(-8.0f, self.frame.size.width, -12.0f, self.frame.size.height, -8.0f, 20.0f); How can I get a similar set up with glFrustumf? ...

Can i display a portion of an image in iphone application using cocos2d ?

I want to display portion of image not to display the total image.At first display the full image but after a delay time display the a portion of this image. I can not understand how can i do this. Like we can display portion of text by fixing the dimension of Label.But in case of image how can i do that using sprite or other. ...

Is it possible to programmatically remove cookies for a domain in Cocoa/iPhone

Basically I make a request to a server using NSURLRequest, like: GET www.example.com/blah The response from the server tells the browser to set some cookies. I need these cookies to make subsequent requests to www.example.com/blah2 and blah3, etc. Once I have completed the series of sequential requests I need to rerun them, except I wa...

How to dynamically restore the UIScrollView's zoom level and position when my app relaunches?

My application consists of a UIImageView inside a UIScrollView, and I display a big image inside of it. The scroll view allows the user to pinch to zoom in/out in the image, and that all seems to work just fine. However, when my application is terminated and then re-launched, the UIScrollView displays the image again in the original zoo...

UITableView: moving a row into an empty section

I have a UITableView with some empty sections. I'd like the user to be able to move a row into them using the standard edit mode controls. The only way I can do it so far is to have a dummy row in my "empty" sections and try to hide it by using tableView:heightForRowAtIndexPath: to give the dummy row a height of zero. This seems to le...

UIWebView underside

Is there a way to change the color of the gray underside of the UIWebView that's seen when the page is overscrolled? ...

Finding a UIImage file type

Is there a way to determine what file type was used to create a UIImage? ...

UINavigationController with UITableView and UIView

I want to be able to switch between a UITableView and a standard UIView in a Parent View. Basically I have a UITableView that shows on load displaying a log of information. I want to have a segment control in the header of the Window that when the user taps, transitions to a Graph View which is a standard UIView. The UIViewController in...

Legality of sampled sound clips in an iPhone app

Does anyone know the legality of using sampled sound clips (specifically spoken words) from movies as part of an iPhone app? ...

What are the recommended system reqs for the iPhone SDK emulator?

I know that the iPhone SDK requires Leopard, i.e. ~900mHz G4+ w/ 512MB RAM. And I've used XCode in the past, so I have a good idea of how that performs. But I've never used the iPhone emulator included with the SDK, and I'm wondering what kind of CPU/memory resources it needs to run smoothly. I would just download it and see for mysel...

Not a number error (NAN) doing collision detection in an iphone app

I have a set of balloons that I am trying to get to bounce off of each other like balls. When I start to move them and then detect collision, the routine for the collisions eventually returns a NAN for the velocity of the balloons. I end up with a position of something like x=270, y= -nan(0x400000). I've been looking at the code all d...

What do you want an iPhone library to do for you?

I'm an undergraduate university student who also writes iPhone applications. Next year I'm expected to do a final project, something that lasts the full year and involves a fair bit of software engineering. My original plan was to write an object-relational wrapper around SQLite for the iPhone (or rather, to massively clean up and exte...

autorelease pool

I was hoping someone could help me with a memory issue on the iPhone. I have a scrollview that is part of a nav controller. Whenever I first push the nav controller and scroll through the scrollview (adding images as I go), memory is allocated in huge chunks (say 1mb each). If I rotate the display a couple of times, the memory is free...

does iphone 3.0 update support forcing landscape mode from a web app?

The new iPhone 3.0 OS is coming out soon. Does anyone know if it allows web apps to force landscape mode by a meta tag or javascript? ...

How to add clear button to UITextField?

Same as http://stackoverflow.com/questions/320078/adding-the-clear-button-to-an-iphone-uitextfield but that one is old. I tried myUITextField.clearButtonMode = UITextFieldViewModeWhileEditing; but nothing is happening. What could be preventing it? ...

How can I make sure my iphone app is the one talking to my server?

Until iPhone 3.0 is available, I need to send an email with what my iPhone app has generated (an image) and to where the user has chosen. Two solutions, the skpsmtpmessage library, which is not all there and still buggy; or write my own server to forward the emails. The latter is no problem for me, but the question is how can I be sure ...