iphone

How to get proper UIInterfaceOrientation from a nested UIViewController

When I place a view controller's view inside a top level view controller, the UIInterfaceOrientation I get from the nested view controller is incorrect. If I get the orientation from the top level view controller, I get the correct one. The interfaceOrientation property is readonly, so I can't simply set it. How can I get my nested view ...

iPhone: How to use a UITableView as a drop-down menu

How do I get UITableView to display as drop-down list? I want to enable selection from a list of items. Since picker view takes up a lot of space and I have already used once in the same app, I was just wondering if UITableView can be used for displaying a drop-down list as it will take scant space. And also the list gets populated f...

Application development for iPhone

Can I develop iPhone applications using Windows 7? If not, can I install Mac OS X besides Windows 7? Is Mac OS X free? Thanks in advance. ...

Universal app for iPhone SDK 4.0

Hi, I have updated my SDK to the latest version: 4.0. So now I am able to create iPhone apps and iPad apps. I want to create a universal app. How can I do this? If we created a universal app, does this mean this app works on both iPhone and iPad? How is this possible, as the screen size should be varied according with UI designs. I am ...

how to set Image using NSAttributedString

Can i set image to corresponding substring using NSAttributedString.If yes,how? ...

problem in integrating facebook with iphone

how i can get template bundle id for my application which i have set up in facebook so that i can integrate my facebook properly with my iphone and how can i get a url path for retreiving friends in facebook ...

UIView not being positioned with setFrame

I'm probably not doing this correctly. Having not done an iPad app before I'm doing what seems natural to me. I have a UIView that is going to be made of up other UIViews. Specifically, I want to dynamically create and add subviews to each of these subviews. In other words: UIView | | --> UIView | | --> Dyna...

How to retrieve the address book content?

Hi, everyone, I want to ask an question about the objective C iPhone application. In my application, I would like to retrieve the content of the (e,g name, phone, email address) in to my application. But I have no idea about what I need to do? Can anyone provide some information, library or link for my to study? Thank you very much. ...

iPhone: MPMoviePlayerController play problem

Hi all, I'm using the standard Apple moviePlayer sample code and have customized it to play only podcasts like: -(IBAction)playPodcast:(id)sender{ movieURL = [NSURL URLWithString:[NSString stringWithFormat:@"%@", podcastURI]]; if (movieURL) { if ([movieURL scheme]) // sanity check on the URL { // initialize a new MPMo...

Manually enqueue reusable UITableViewCells?

I have some custom table view cells that takes a while to draw, so the first time you scroll it's not very smooth. After the first scroll, all the views are cached and the scrolling is very smooth. So what I'm wondering is if I could draw all the cells and cache them before the table view is shown and how I would do that. Would there be...

[UINavigationController popViewControllerAnimated:NO] doesn't release controller?

I have one UINavigationController that I use like this: DetailsViewController *controller = [DetailsViewController alloc] init]; [self.navigationController pushViewController:controller animated:YES]; [controller release]; Of course this code works well. The problem: when I send the popViewControllerAnimated: to the UINavigationCont...

Is it possible to do for loop backward?

I found it not correct to do this in Objective C. So anything wrong here? for (int i=10; i<=0; i--) ...

iPhone- Dynamically update NSDate for clock?

I've made a clock, and I'm trying to update it so it displays, well, the time. When I initiate the NSDate it is an instance of the exact current time, for the time it was initiated. So what I have going on here is pinging the updateTime function with an NSTimer to update the clock every 3 seconds. It seems that there should be a way to ...

iPhone Deck Game Loop

Hello everyone can anyone tell the best approach to run game loop like Uno or Herats (Deck Game) [CPU2 turn]; [CPU3 turn]; [User turn]; // Wait to get user input before proceed to [CPU4 turn] [CPU4 turn]; ...

Problem with ebook reader application

I am working on a ebook reader application... i can able to work exactly as iBooks application does. I have used : CFURLRef pdfURL = CFBundleCopyResourceURL(CFBundleGetMainBundle(), CFSTR("paper.pdf"), NULL, NULL); pdf = CGPDFDocumentCreateWithURL((CFURLRef)pdfURL); CFRelease(pdfURL); - (void) renderPageAtIndexNSUInteger)index inCon...

Why doesn't in-app purchase show my application's name when testing in the sandbox?

Hi All I have completed in app purchase for my application. Its working fine. The only problem i have , when i test in app purchase in sandbox enviornment, It shows a message do you want to buy an "un known app" for 1.79. why doesnt it shows the name of the app. Plus when i am going to upload the final binary to app store. w...

UITableView: delete section controls

Hello, Is there a way to add delete controls, like in UITableViewCell, on a table section? I see two ways: Use table cell instead of sections. Write own UIView section class, which will show delete controls. Regarding the first way - as I think, it could be an easiest way in my situation. The second way may be better from the imple...

how to rotate uibutton like this in iphone sdk.....

how to rotate uibutton like this in iphone sdk..... ...

Can a UIWebView web form be populated programmatically?

If you have a UIWebView, and load a web page with a form on it, can you programmatically populate that form? Either with objective-c or javascript, or something else? ...

Will revoking Distribution certificate affect application which is In Review(on apple store) for Iphone??

I just lost my private key with Os reinstallation so will have to create new Certificate Signing Requests.. I wanted to know if revoking my Distribution Certificate will have any effect on my existing applications on App Store especially when one of my applications is waiting for approval ( In Review ) build from old distribution certifi...