iphone

iphone maps GPS icon

I would like to make a button that centers the map on the current GPS location. Google Maps app has that icon on bottom left. Where can I get that icon. Is it embedded in the SDK? ...

Refresh a UITableView after loading

I am trying to load a table view from a cache very quickly and have the cached data in the table view appear. Then I want download new data, and then reload the table. Right now I am downloading the new data on viewDidAppear, but the view still refreshes before it displays. Any idea how I can do this? ...

iPhone/iPad : Check for invalid characters in a textbox made for Integers only

I noticed that the iPhone OS is pretty good about picking out Integer values when asked to. Specifically, if you use NSString *stringName = @"6("; int number = [stringName intValue]; the iPhone OS will pick out the 6 and turn the variable number into 6. However, in more complex mistypes, this also makes the int variable 6: NSStrin...

When should we delete the cache data in an iPhone apps?

Hi all, We often cache image and data to improve our iPhone app's performance. But what strategy do you use to manage the cache data, such as delete or update it? I saved the images to TMP folder, but don't know when should I trigger to "checking out of date cache data and delete it": when the iPhone apps starts, or quits, or in idle t...

iPhone - how to store documents consisting of multiple images?

My iPhone (actually, iPad) app creates documents that consist of several images, plus a bit of metadata. What's the best practice for storing these sorts of documents on disk? I see two main options: Create a folder for each document, and store my images as separate PNG files within the folder (plus another little file for the metada...

Object mapping in objective-c (iphone) from JSON

For my iPhone app, I'm consuming a RESTful service and getting JSON. I've found libraries to deserialize this into an NSDictionary. However, I'm wondering if there are any libraries to deserialize the JSON/NSDictionary/Property List into my object (an arbitrary one on my side). The java equivalent would be the object-relational mappers ...

Is iPhone's Safari resolution treated differently than the rest of the device?

I have an image that is 480x270. In theory this should occupy all the space between the battery bar on top and the navigation bar at the bottom when the phone is rotated on to its side. However, inexplicably the image is displayed shrunken to where it barely occupies 1/2 the screen horizontally. I thought perhaps the phone is shrinkin...

Why does my UIButton.titleLabel.text disappear when I place an image in the button?

I've had this problem before but was able to work around it until now, Basically I'm creating a custom UIbutton setting its image as a uiimage and then the button that has had a label until I implimented the below code now loses its label. I need that label because it is set programatically in code that follows. NSString *imageName = [...

Add new item to UITableView and Core Data as data source?

I have trouble to add new item to my table view with core data. Here is the brief logic in my codes. In my ViewController class, I have a button to trigle the edit mode: - (void) toggleEditing { UITableView *tv = (UITableView *)self.view; if (isEdit) // class level flag for editing { self.newEntity = [NSEntityDescription inser...

iPhone -- initialization partly by NSKeyedUnarchiver and partly by other means

I have an object myObj, which is an instance of a class MyClass. Some of its instance variables always have their initial values passed in by the calling code. Other instance variables will be initialized in one of two ways. For an instanceArray of type NSMutableArray, the possibilities are either instanceArray = [[NSMutableArray all...

Why in landscape orientation in simulator all the subviews appear out of order?

I was doing a sample app in ipad. I added about 4 to 5 imageviews to the left side of the view vertically. This view will appear when we select the corresponding entry in the splitviewcontroller. In ipad simulator too, all the images were loading and all are working fine in portrait orientation. But when I rotate the simulator to lands...

BitmapContext on iphone

Hello, I am repeatedly drawing to an offscreen bitmap context non-destructivly on iphone. Right now the only way I have figured out to get it to display is to update the drawRect of my UIView with the contents of the context. This runs really slow and seems unnecessary. Does any one know of a way to have the bitmap update on the screen ...

how to find all the methods available in UISearchBar

Hi, I am trying to create a customized UISearchBar. I am not able to find all possible methods using documentation. Is there way to find all the available methods ?. ...

Question Related to Custom control

Hi I need ur help for making custom control in my project Is Custom Control is Possible in Iphone? ...

How can we achieve the gradually growing and then going into fullscreen effect when we play a video in iphone?

When we click on the button or anything that is gonna play the video in my view, I want the player to grow and become fullscreen and then play(Like animated to become fullscreen). Now its like when we click suddenly the fullscreen movie starts playing. How can I do this? Do anyone know? ...

Sometimes Xcode appears to ignore target build settings?

Hi all, I've created a iPhone static library project with two targets like this Project --> Library (Device) target --> Library (simulator) target The device target has the SDK set to the device so it produces an armv6/7 library and the simulator target is set to the simulator SDK so it produces an i386 library. The issue I'm having ...

How is a Delegate is different from an object in cocoa…?

Hi, i want to know how Delegate is differ from object in cocoa any good articles. Thanks. ...

Cover flow model in iphone

I am making the cover flow model on the iPhone using the tutorial found here: http://www.chaosinmotion.com/flowcover.m I want to move the cover flow animation up in the screen at height of about 150, but when I change the starting y point of the rectangle, then my image is cut off from the top. How can I prevent this? ...

Easiest way to connect iPhone and Mac over WiFi with "server client" model

Hi there, I am interested in creating a server application on the Mac and a client application on the iPhone. The iPhone would send commands to the Mac through this connection. What's the easiest way to do this? I've seen NS/CFNetServices discussed here: http://stackoverflow.com/questions/1848525/ad-hoc-wifi-connection-between-iphone-...

Facebook Source path issue in iPhone

Hello everyone!! Hope You all are fie and also in one of your best of moods!! I need your help to solve an issue with Facebook. I have integrate Facebook Connect with my iPhone app. So as per step i have to write path of src folder into 'Header path info' Field in Project Build. I have given the absolute path to 'Header path info'...