iphone

Debug/Distribution discrepancy in Xcode

I have searched and figured out how to change the name of my app (going through and changing the Product_Name) that shows up below the icon so now my app doesn't use the arbitrary name that I picked out when I started developing. Now that I am using a distribution certificate - it goes back to the old one. I changed the name of the .ap...

Navigation bar button doesn't work after updating current target for iPad

I'm trying to convert my iPhone app to a "universal" app with the following steps. The app's first screen has a navigation bar. Download and install Xcode 3.2.3 and iPhone SDK 4. Open an existing Xcode project of an iPhone app, select the target and choose "Update Current Target for iPad..." from the File menu. Select "One Universal ap...

base64 http post using iphone sdk

Hello, I want to post some binary data to a website. The file can be somewhat large so I convert it to base64 and composite an url and post the url to the website with NSString stringWithContentsOfURL. This works but it's really much slower than I think it should be. In part because my servers has a 2048 character url limit. Is the...

iPhone application - perform post-install tasks or pre-populate core data

Is there a way to perform operations during the install phase of an iPhone application? I think this would be the most ideal time to perform tasks such as populating data stores (using core data). Or is there a more convenient way to: pre-populate data perform post-install tasks ...

apple not currently accepting applications built with this version of the SDK?

My binary was rejected with the error above as the reason. I checked my xcode settings and under the "General" tab of info I have the Project Format set to Xcode 3.2 compatible which is the highest available. I have the Base SDK Configurations set to iPhone Device 4.0 - also the highest available. In the "Build" tab, I have the Base S...

PHP Twitter proxy that supports XAuth on an Apache server

I've been banging my head against this problem for nearly two days now, and I'm hoping someone on this site can help me. I live in China and have a server (shared hosting) located in Hong Kong. I've set up a PHP Twitter proxy on the server, and I connect to the proxy using Twitter for iPhone (AKA Tweetie). It's worked beautifully for th...

Extracted iPhone OS images showing as 0x0

Hi, when i try to download a image from my iPhone (Drop Pin Marker) through a FTP client the file always shows up on my desktop as width-0 height-0. It can be viewed on a internal file system viewer fine but when it gets to my desktop it has no size. Why is this and how can I open these files? ...

Pass data between ViewControllers in a UINavigationController

(Continued from this thread) Suppose that I have the following view created: The 'View' button is supposed to push a new ViewController which will show all photos by either Josh or Al, depending on which button is pressed. My question is: In the ViewController code, how do I determine which 'View' button is pushed (top or bottom)? ...

iphone sdk Creating custom Templates

Cocos Provides a .sh file to install cocos2d templates. My task is very much similar to that. I have to create One User Template Group. Similar to screen shot. My question is how ? How to create a group under "user templates" ? ...

NSMutableArray arrayWithCapacity vs initWithCapacity

I'm an iPhone/Objective-C newbie with an extensive Java background. I'm learning more about memory management in objective-c and I'm reading Apple's documentation on Memory Management: http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt.html In the Object Ownership Policy section, it says that...

sending the delegate methods asynchronously - iPhone

Hi, there! I have defined a protocol like this: @protocol RSSItemParserDelegate <NSObject> - (void)RSSItemParser:(RSSItemParser *)parser didEndParsingSuccesfully:(BOOL)success; @end And I am calling this method when some parsing is finished, on success YES and on failure NO, like this: [delegate RSSItemParser:self didEndProcessSucces...

Map application in iphone

Hi,requirement of my app is to set a user current location and wherever he travels his that position should be mark and then he should get entire rout in iphone. Please help me. ...

NSNumber + a real number (e.g 50) = not possible?

Hi guys . i have an NSNumber that is taken from a string like this NSNumberFormatter *f = [[NSNumberFormatter alloc]init]; [f setNumberStyle:NSNumberFormatterDecimalStyle]; BRNumber = [f numberFromString:BRString]; of course this returns a value but now i wish to do something like id y = BRNumber + 50; It seems that this is not p...

iOS 4 + MPMoviePlayerController

Hello All, I have developed universal application which runs on both IPad and IPhone. I am using one component of MPMoviePlayerController in this. now the iOS4 is released, Today I got a bad news about my application rejection due to this MPMoviePlayerController crash. iDemoPlayer= [[MPMoviePlayerController alloc] initWithContentURL:a...

Iphone SDk Sound On/off Using UISwitch Button ?

how can i turn on/off sound in iphone sdk using UISWITCH button ? ...

How to call [[UIScreen mainScreen] scale] in a universal app for the iphone and ipad

I'm making a universal app that will run on both the ipad and the iphone. So far so good, but I have just updated my SDK to ios4 and am wanting to call [[UIScreen mainScreen] scale] (scale is not in the 3.2 sdk and the ipad doesn't have ios4 yet). I know that I can call [[UIScreen mainScreen] respondsToSelector:@selector(scale)] to fin...

Audio conversion of CAF file

Hi, I am recording audio on the iPhone to a CAF file with kAudioFormatiLBC, the recording works fine. I want to be able to take a sample and also get it to convert to other formats after I have uploaded it to by ruby on rails webservice. I am trying to use sox but get: sox in.caf out.mp3 sox FAIL formats: can't open input file `in....

Is there any class for weak References on iPhoneOS ==> none

My APP received a big data that was used about twice times. So, I think It`ll cause a memory problem. In this case I use the WeakReference class on java. But, I couldn`t find any class for weak references like java. Is there any class for weak refereces on iPhoneOS? Is this the only way in this case, that using didReceiveMemoryWarning...

iPhone: Help. Extracting stderr/messages from GDB and copy to string.

Hi, So the whole idea is this. I need to save those debugging console messages to some strings and then write it to the text file. I have no problem with the writing to text file part as i will be using writeData but I have problems with the first part. in the console i see these error messages when opening corrupted image files in UII...

Zombie CADisplayLink?

Hi everyone, Is it possible that a CADisplayLink gets called one or two more times even after being invalidated? It looks that way to me, and this is causing me a problem because the target object is called where it's already gone so it crashes. Thanks! ...