cocoa-touch

How to set view outlet for a UIViewController that contains a UITabBarController?

I have a UIViewController that contains a UITabbarController which contains a UINavigationController. When I am setting up my IB outlets, what should the File's Owner view outlet be set to? ...

Is there a good UITabBarController Example?

Is there a good UITabBarController example where it is NOT created in the appDelegate? I would like to use a UITabBarController inside of a UIViewController, however dont know how to set the view outlet. ...

Is it possible to push a UITabbarController from a UINavigationController?

I have a UITabBarController that is loading a UINavigationController. When I push a new view controller, is it possible to change the UITabBarController to a new set of tabs? ...

how to get the maximum fps in ipad ?

I have developed a game for iPhone using coco2d 0.99.3. I want it to work on iPad. I have the new images which are bigger in size and resolution than iPhone images. Every thing is fine, but I got the fps problem. In iphone simulator I used to get 50 - 60 fps and even in iPhone device I used to get 50 above fps. But, in ipad simulat...

How to find out whether an image exists within a bundle?

I have an array of NSStrings: Flower Car Tree Cat Shoe Some of these strings have images associated with them; some don't. I can build an image name by appending .png to the name (e.g. Flower.png). How do I check whether that image actually exists within the bundle before I try to load it into the view? ...

How do I add an extra separator to the top of a UITableView?

Hi, I have a view for the iPhone that is basically split in two, with an informational display in the top half, and a UITableView for selecting actions in the bottom half. The problem is that there is no border or separator above the first cell in the UITableView, so the first item in the list looks funny. How can I add an extra separa...

How to prepare a mail interface like mail in iphone.

Hi all, I want to prepare the mail interface for show mail and compose same as mail in iphone in my application. Please suggest me any idea for how I prepare the layout for show mail and compose mail. Thanks Deepika ...

Serialize mkcoordinateregion to store in core data?

Hi all, What is the best way to store an MKCoordinateRegion using core data? I assume there is a way to convert this to binary data somehow?? Many thanks Jules ...

Puzzled with nib files...

I know nib files are serialized objects and they have owner, outlets to make connections. Using XCode Navigation window template I created application, which in its order created 2 nib files - MainWindow and SecondView. I can't understand how MainWindow is referring to SecondView, there is no connection between those two as far as I can ...

Problem to get a Substring from a String?

Hi all, i have a little question ,i have a NSString object (\n "1 Infinite Loop",\n "Cupertino, CA 95014",\n USA\n) and i want the substring present within 2nd double quote and first comma of 2nd double quote (Ex.Cupertino) from this string.(Note: My string is Dynamic) Till now i have used stringByReplacingOccurrencesOfString: and abl...

Making UITableViewCells bleed over

What I'm trying to achieve might be a bit of a novelty, but maybe someone has already done this or has some great ideas. Here's the situation: I have a UITableView sitting on top of a UIImageView (which provides the background) that has a brushed metal texture. The fist row in the table is colored black. What I'd like to achieve, is the ...

How to draw a histogram chart in cocoa

Hi, As per My requirements i need to generate a histogram chart using cocoa framework and objective c. If any one knows the solution please let me know ASAP. Thanks, Ravi ...

Renamed methods with "Deployment Target" and weak-linking in Cocoa Touch

In the iPhone SDK 3.2, [CLLocation getDistanceFrom:] was renamed to [CLLocation distanceFromLocation:]. My project is compiled with 3.2 as the Base SDK and a "Deployment Target" of 3.0, meaning frameworks only available in 3.2 are weak linked so my app can still run on 3.0. If I change my calls to use the new name distanceFromLocation:,...

how to resign keyBoard as a firstResponder from a textView??

Hi I want to resign the keyboard from the text view as a first responder.I want as soon as user hits the return key after editing in a textView the keyboard should resign.But I am not sure how should I do this??? ...

Is there anyway to access root on iPhone using NSFileManager?

I was trying to access the root directory and list the contents of it but I got 0 folders listed there. I s there anyway to access it for instance to query the SMS.db under root/SMS folder. Thank you all in advance. ...

AppDelegate viewController memory leak?

I am just curious with regards to the correct way to create a view controller programatically. When I compile this code with the static analyser I get a leak (as you would expect) from the alloc. Should I just leave it as it needs to stay until the app exits anyways, or is there a cleaner way? - (BOOL)application:(UIApplication *)applic...

Purpose of UIControlStateSelected

The three other UIControlStates are clear to me, but I cannot understand the purpose of UIControlStateSelected. What/when does a UIControl subclass enter this state? ...

UIImageWriteToSavedPhotosAlbum working... sometimes.

Hello, UIImageWriteToSavedPhotosAlbum is only working sometimes. Sometimes it works, sometimes it doesn't, exact same function. - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo { NSLog(@"Saving image to camera roll..."); UIImageWriteToSavedPho...

Problem importing Quartz framework

I have added the Quartz framework to my project, but when I compile I get the following errors: ld: framework not found Quartz Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 ...

get data from online once and then viewable offline

Okay, I want to have an app that takes phone numbers from an online database and displays them in a table view. When the user is not online, I want them to still be able to see the numbers they already got from the database in the table view. If the user manages to go back online, the database updates the view. My question is, is this po...