iphone

iPhone Screen Rotation: Can I enforce 90 degree rotations?

My iPhone app rotates fine in the simulator but when I deploy it on a physical device, rotating is very very sensitive. How can I fix this issue and make sure the screen rotates only when a 90 degree angle is made? ...

How to get "C" written frameworks' headers?

Hi. I have a question for those iPhone hackers. People using private apis know that their private headers are dumped using a tool called 'class-dump'. As I know, this tool only dumps Objective-C headers. Is there any way to dump C headers? For example, GraphicsService, a framework on iPhone. Some guys successfully generated its header...

i am not able to save a whole webpage in webview

Hi Guys, I am able save page and view it offline and everything is working fine.The only problem is i am not able save a whole webpage in webview.I want know whether there is any height limit to save a webpage. Anybody help me out with this issue. Thanks & Regards, vinod ...

Script for opening app in iPhone simulaor.

Hi all is there way if we write script that will open application in iPhone simultor. ...

Syncing Core Data model between Mac and iPhone

I am currently building my Core Data model, which I would like to sync between the Mac and iPhone versions of my application. I will be using Bonjour for device discovery, etc but I have a question regarding the data sync part of the problem. So far I have added a UID and modification timestamp to each object that will be involved in s...

How can I get to installed app list on iPhone device?

hi there! I'm new for iPhone dev. I got a question for development of iPhone app. Is it possible to get to installed app list on iPhone device? thanks. ...

How do I indicate activity in a tight vertical space?

I have space in an iPhone app that would fit a progress bar nicely, but I need it to display "activity". I know the iPhone has a UIActivityIndicatorView but that's an animated circle and looks really bad in a tight space. I'd love to be able to render a progress bar that simply shows activity, very similar to the Mac indeterminate prog...

Optimal way to persist an object graph to flash on the iPhone

I have an object graph in Objective-C on the iPhone platform that I wish to persist to flash when closing the app. The graph has about 100k-200k objects and contains many loops (by design). I need to be able to read/write this graph as quickly as possible. So far I have tried using NSCoder. This not only struggles with the loops but als...

NSString: isEqual vs. isEqualToString

What is the difference between isEqual: and isEqualToString:? Why are classes adding isEqualTo* methods (isEqualToArray for NSArray, isEqualToData for NSData, ...) instead of just overriding isEqual: ? ...

Why doesn't NSEnumerator iterator recognize object properties within DrawRect?

I usually have no problems using NSEnumerator in the iPhone sdk but this is my first time using it within the DrawRect function of a UIView. The NSEnumerator iterator is causing an error: request for member "(member)" in something not a structure or union. 1) Why is this happening? 2) How can I workaround it? (P.S. the member not bei...

HTTP connection with NSURLConnection in iphone

Hi, Thanks a lot for reply. I am stuck here. Can you please help with this situation? Can CFHTTPStream will resolve this problem? Is there any other way to work with this problem ? Thanks. Hi, I am connecting to an HTTP url using NSURLConnection. I am supposed to get response after some time intervals (The response is not getting close...

Upside-down interface for iPhone

I want to have a completely upside down interface. I don't mean it should change according to the orientation of the phone. I mean it should be upside down ( UIInterfaceOrientationPortraitUpsideDown ) the whole time. A button should be able to 'right' it again. The same button should return everything to upside down. What's the best way...

View Will Appear doubt

Why in my UIViewController the function (void)viewWillAppear:(BOOL)animated fired at two times.... Is it wrong ? Can anyone help me? Thanks in advance.. ...

setting objects to nil when releasing NSArray

When I get a memory warning I am releasing a bunch of objects stored in an NSMutableArray. [_children release]; I also need to recurse through objects at some point (potentially after a mem warning has happened), so I need to check if the objects are still around, which I do with comparison to nil- which isn't going to work because re...

NSInternalInconsistencyException when last row is removed from the section

I have an iPhone 3.0 application that work with requests using Core Data. It has a view with all requests grouped by request status (sectionNameKeyPath:@"status" ). Also it has another view where the user can change the request status. I have a problem when there is one row/request with in specific group and the user edits the status of...

how we can show UIView by using cocos2d with animation?

how can i show a UIView using cocos2d with animation, i have used code like: [[[Director sharedDirector] openGLView] addSubview:myView]; but this without any animation, so how can we do it? ...

UIWebView "decays" to UIView when added to navigation controller

I'm working on a simple iPhone app prototype in which a selection from a UITableView takes the user to a UIWebView showing some content. My project is based on the "Navigation-based Application" template, so I have a UINavigationController managing flow. The problem is that my UIWebView seems to change into a generic UIView when I add i...

"Invalid" iphone string

I'm converting data (from a web page) to a string). The basic code works (but there's been some subtle change somewhere - maybe on server). NSLog shows the expected string (maybe 1000 chars long). However, when I float over responseString, it shows "Invalid". Worse, parsing with componentsSeparatedByCharactersInSet does not work. I...

NavigationController Problem

In navigationcontroller application , i used ViewController *modalViewController=[[ViewController alloc]initWithNibName:@"ViewController" bundle:nil]; [[self navigationController]presentModalViewController:modalViewController animated:NO]; [modalViewController release]; above code will load an anotherviewcontroller.... I want to pus...

Memory managment when drawing to a view on the iPhone

Hey guys, I have a UIImage that I'm instantiating using imageWithData: (the data is loaded from the bundle using [NSData dataWithContentsOfFile:]). I'm then drawing the image like so: NSData *imageData = [NSData dataWithContentsOfFile:fileLocation]; UIImage *myImage = [UIImage imageWithData:imageData]; //These lines are superfluous ...