iphone

iPhone SDK: My server doesn't support range header requests, does that mean it's impossible for me to implement resumable downloads?

I am currently developing an iPhone app, in which involves downloads of up to 300 mb. I have been told by my hosting service that my server does not support range header requests. However, when I download a file from my server using a download client, like safari download manager, resume options are available and work. Does this mean ...

How can I disable the multitouch capabilities in my iPhone application?

How to disable the multitouch capabilities in new iPhone application? ...

invoking iphone addressbook add contact view?

Hi In my App, I need to invoke the native add contact view. Is it possible to do it or do I need to develop my own screen and I need to add the record for the contact database? ...

Animated status bar style transition, a la iPod app

In the iPod app, the navigation views have the default status bar style, and the Now Playing view is in the black style. The transition between them is animated with a crossfade. I want to do that. My first attempt: [UIView beginAnimations:@"whatever" context:nil]; [UIView setAnimationDuration:0.5]; self.navigationController.navigation...

How to swap values in NSMutableArray?

This piece of codes segment fault on me, any idea why? allButtons is a NSMutableArray, it contains 3 objects, a=0, b=1, a and b are int type if(a != -1 && b!= -1){ //Swap index in "allButtons" id tempA = [allButtons objectAtIndex:a]; id tempB = [allButtons objectAtIndex:b]; [allButtons replaceObjectAtIndex:a withObject:...

how to load View again in viewController insterfaced with Tab Bar when different tab bar navigated.

Hello, I have created Window based application with tab bar controller as root controller. Two tab bar has navigation controller which interface with view controller, and one tab bar is directly interface with View Controller. Here, Once application start, it first execute -ViewDidLoad of 1st tab bar interfaced viewController and load ...

How to get a 3D picture in an iphone app?

In an application, i saw that they used to display pictures of vehicles. But what was amazing was when we touch and swipe in that picture, it rotates in 3d way left and right. And from the front view we can rotate and get to see its back view also. It is a very good feature and i was trying to replicate it. But couldnt get an idea of how...

detail disclosure indicator on UIButton

Is there a simple way to place a detail disclosure icon on a UIButton? I'm using a navigation controller and I want a button press to push a new view on the stack, so I thought a detail disclosure icon would be appropriate, but I haven't found a straightforward way to do that yet. What I have in mind is something like the "When Timer En...

Iphone: Problem with moving back and forth between two UIViewController

Let me first describe the context of the problem. I have 2 UIViewController call AdminViewController and ButtonReorderViewController. AdminViewController contain 1 button. ButtonReorderViewController contains 1 button and 1 picture. Button in AdminViewController tie to an event call goToReorderButton. The content of goToReorderButton are...

iPhone app development : How can i get a table view in which whn i click on a cell a text view should expand just below that cell...?

How can i get a table view in which whn i click on a cell a text view should expand just below that cell it should look like clicking on a button an it will create a text view in between clicked button and its below button... i m trying to create a pictorial view... tabel view: button 1 > button 2 > button 3 > table view: ...

how to detect shake in iPhone..

i have used accelerometer.. but what should i do to detect hosrizontal shake of device? Thanks in advance.. ...

iphone touches that start from the top above the screen nolonger registering

I started my app using the original OpenGL ES template that came with the 2.2.1 sdk. I added the touch callbacks and everything worked fine but I have now migrated my project to the new OpenGL ES template that came with the 3.1.3 sdk, and everything works fine except now touches that begin above the screen, dragged onto the screen no l...

How do I remove those rotation artefacts from my CATiledLayer?

Hello all, I have a CATiledLayer into which I render content in the following method - (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx I used the QuartzDemo code to draw a pattern. This works very well until I apply a rotation transform to the layer's parentLayer (a UIView): rotated: These zigzag artefacts become w...

iPhone Development - CLLocationManager vs. MapKit

If i want to show userLocation on the map, and at the same time record the user's location, is it a good idea to add an observer to userLocation.location and record the locations, OR should i still use CLLocationManager for recording user location and use mapView.showUserLocation to show the user's current location (blue indicator)? I wa...

iPhone Development - Making sure we have a fresh location

How does this condition work? I'm unable to comprehend this. if ([newLocation.timestamp timeIntervalSince1970] < [NSDate timeIntervalSinceReferenceDate] - 60) return; Reference: More iPhone 3 Development - Tackling iPhone SDK 3 ...

Question related to photogallery

I'm saving my image to photo gallary , but I want to fetch this image on click of UIButton and want to show it on the UIImageview or UIview.My code for saving image on photo gallery is as under:- I don't want to use UIImagePickerViewController any where in my programme UIImage *image = [UIImage imageNamed:@"flower.png"]; UIImageWriteTo...

Ambiguous scénario for iPhone memory management

Hey guys, i have some difficulties to understand this scénario ... i create an object i set its retained property to something i Forget to release its property i release the object as i didn't release the property in the dealloc method, Will the scénario result in a memory leak or Will the property be released automatically ? And ...

How to set a reference from one object to another?

SOLVED I misspelled the property department -> Department. Thanks for the answers and a big SORRY Hi, Imagine the obvious model of employees and departments, where each employee must refer to a single department, and each department may have none to many employees. For Employee I have a pointer to Department, and I set its value to ...

iPhone animation based on touch

Hi there, I am working on an iPhone app at the moment and I am struggling with some animation. Basically I have 109 frames for dragging about a man on screen, so what I am doing is listening for touches, and calculating which frames I need to switch to. This works all well and good, but after a while I get a memory leak and the app cra...

iPhone UIButton Tap

Hello all, I am trying to make a button that response to single and double tap. I am trying to do this using myAction method. The problem is that first time when I press the button the method myAction isn't called. Can somebody tell why this happening and how can I fix that? -(IBAction)myButton:(id)sender{ UIButton *theButton = (UI...