iphone

How to build an iPhone app for distribution on the clients account?

I've developed a small app for my client which is supposed to be released under one of their brand names. They've created an iPhone developer account to be used for this purpose. So far, for testing I provided them with ad hoc distributed builds using my own developer account. But how do I proceed about building their app store distribu...

Unarchiving the zip file is not working

Hi all..... i am new to iPhone programming..can anybody help me out from the following problem i am using the fallowing code to unarcive a zip file.. its not working... and printing the NSLog(@"Failure To Unzip Archive"); msg self.fileManager = [NSFileManager defaultManager]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSD...

iPad: Compiler directive I can use to distinguish between Simulator and Device?

I want to have a compiler (pre-compiler) directive in my objective-C class to distinguish between the simulator build and the device build. #if SIMULATOR call testModule(); #else call productionModule(); #endif Is there such a #directive in X-code for the iPad/iPhone? ...

What are the limitations of coding web apps for the iPhone?

For instance, could a web app access the mic on an iPhone and transmit voice back to a server? Or is it possible to build Safari extensions for the iPhone that can operate transparently on a web page? For instance, is it possible to build an extension that removed ads from Google result pages for the iPhone, without the user clicking a...

Nested UIScrollView like photo apps having issues when changing orientation

Hi, I have implement a nested UIScrollView based on apple developer website sample. It works fine until I turned on the orientation change. When it rotates, there will be some white color coming out during the rotation animation. And it will go away once the loading is completed. I have tried to set the backgroundcolor to black for bot...

Adding item to NSMutableArray with function results in no

I have the following utility method declared, where "players" is a NSMutableArray object and a property of my application's view controller. My problem is that "players" still has 0 objects after this method is called. -(void)addPlayerNamed:(NSString *)name withLife:(NSNumber *)life{ NSMutableDictionary *newPlayer = [NSMutableDiction...

CGPDFDictionaryRef to something useful

A little bit of background: I'm appending an image to an already existing pdf file. I found out that there isn't a way to just add a page to it, you must recreate the whole pdf, then remove the old one then move the new one. (If that is wrong please tell me, and it will save me a lot of headaches.) I've accomplished that part, but I'm no...

retrieve single object from NSFetchRequest

I want to get a single object from my Core Data datastore, here is the code I have been using but it returns an array of objects, there must be a simpler and better way: NSFetchRequest *request= [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"Manufacturer" inManagedObjectContext:managedO...

Create a view like contact info in ios4

Hello, I would like to create a view like contacts info in new ios4. I've been looking for a document, source code(this is better) or something else but I wasn't lucky. Please if somebody can help me I will be very very happy, I need to show a picture, some fields like textbox and description field. Thanks in advance ...

iPhone SDK - Can I use a HTTP POST When retrieving data?

I have a general question. Using the NSMutableURLRequest object in the iPhone SDK, can I set the HTTPMethod to POST when retrieving data from a server? ...

Help to decipher iPhone app code

Can someone please help me decipher this code? It's executing when a user pushed a button to submit the data, or in this case, a "question" in the iPhone app. I know that it's sending the string to my phpscript.php hosted on the server, but what i'm not familiar with are the long list of commands happening. NSUserDefaults *p = [NSUserD...

Animating UIView with UIViewContentModeCenter causes break in background

I'm attempting to animate a UIView that has all of its content drawn in the drawRect method. If I try to animate the view with the default settings, the content gets stretched out in a really unappealing manner. My solution was to change the content mode of the view to UIViewContentModeCenter. As the content in the view is centered anyw...

Is it possible to somehow save UIActionSheet indexes?

Hi, I would like to use an ActionSheet for sorting options in an app containing many table views with navigation controllers. My problem is that I cant seem to keep the last selected index on the sheet after poping back one level or quitting the app. The index value defaults back to 0 and I just cant seem to change its initial value. It...

How can I determine UITabBarItem position?

How can I determine if a UITabBarItem has the title "Hello" and is in position 0? ...

App crashing after reloading

I am writing my first app that tries to deal with persistent data and am having some major troubles. I finally feel like I am getting close but now the crash is crashing sporadically - I assume it is some sort of memory issue but have no clue how to fix it. If I reset the settings of the iphone simulator and then run the app it works g...

iPhone 4 mobile web app pixel scaling issues

Hello, I'm having trouble getting my mobile web app to render properly on my iPhone 4. According to Wikipedia, the iPhone 4 has 960 width x 680 height pixels and the other iPhones have something like 480 width x 340 pixels. With my current build, the images and CSS styling look really tiny on the iPhone 4. Here is my code: <!DOCTYPE...

UIImage from CALayer - iPhone SDK

Hi all, In my application, I have created a CALayer (with a few sublayers - the CALayer is composed of shapes added as sublayers). I am trying to create a UIImage that I will be able to upload to a server (I have the code for this). However, I can't figure out how to add the CALayer to a UIImage. Is this possible? Any advice would be ...

Having a UINavigation in a UISplitView

So I was looking at this app http://itunes.apple.com/us/app/pageonce-personal-finance/id285056092?mt=8 (see iPad screenshots) and it appears that they have a uinavigation controller within the Details view of the UISplitView. When I tried to make a UINavigation controller in my Details View, the navigation bar overlaps with the UISplitVi...

Core Telephony framework ios 4.0

Hello can we add or show the view in core telephony framework. if possible then how? Actually i have two diffrent application, one for inbound, second for outbound, i need to do show one view after 5sec-10sec of call whether its incoming or outgoing.Please help me out and revert me back as soon as possible . and its also a request pleas...

UITextField : testing text property for empty string or nil or null doesn't work!

Hi! I got this weird problem testing for empty (or null) text property. Here my setup : I got a view with 6 textfield in it and here the code I use to go thru those field (loaded in a NSMutable Array)... NSEnumerator *portsEnumerator = [appliancePorts objectEnumerator]; UITextField *tmpField; newSite.port = [NSMutableArray array]; whil...