iphone

How was your iPhone developer experience?

Have you developed an app for the iPhone platform, and gone through all the hoops (both legal and technical) to have Apple distribute your app via the AppStore? How was the experience for you? How long did it take to make your completed app available in iTunes? Did you register as yourself, create a company, or use a "DBA" tax ID? An...

Cocoa-Touch framework for speaking to a TCP socket?

I have a daemon running on a server that's latched onto a TCP/IP port. I'm looking to see if there's currently any support iPhone/Cocoa-touch frameworks that gives a nice OO wrapper for speaking to the daemon over an IP socket. I need to be able to interactively query the daemon with commands and retrieve back information. If there isn'...

Does anyone know how sites are generating the Apple App Store updated apps feeds?

A lot of sites have rss feeds for updated and new apps on the Apple iPhone App Store. However, Apple's rss feed generator only shows feeds for the top 100 free/paid apps. So how can I generate my own database of new/updated apps in the same fashion as all these folks are? What magic feed are they accessing? ...

iPhone AdMob ad

Hi, I have the following two questions, I tried googling these, but didn't find any luck. Please help me. I have integrated AdMob ad to my iphone application. when the admob view is clicked, safari gets opened, and if there is any error in loading the ad, it displays an error message saying "safari cannot open the page because too man...

Is the System always going to call UIView's layoutSubviews: method on layout changes, so that I can react to changes in the layout?

Example: If the user takes a call during the use of an app, the System quits the app. But if the user comes back to the app while he is still on the call, then the Status Bar will be heigher than usual. That's to indicate that he's still on a call. However, this results in layout-problems. Like I understand it, the System would then send...

How can I react on an UIApplicationDidReceiveMemoryWarningNotification ?

When memory becomes low, the System would send that UIApplicationDidReceiveMemoryWarningNotification notification. But I don't get it... that isn't a Method I must implement in my App Delegate, right? How do I get this notification? ...

How do you release a shared accelerator instance on the iPhone?

I have created an accelerometer variable: UIAccelerometer *objAccelerometer; that I am associating to the sharedAccelerometer instance: objAccelerometer = [UIAccelerometer sharedAccelerometer]; objAccelerometer.delegate = self; When I release this view (to load a different view), the accelerometer instance causes the program to d...

Where and how do I register an object for receiving an Notification?

Example: When memory gets low, the System sends an UIApplicationDidReceiveMemoryWarningNotification notification. That's all apple says in his doc at that point. But where does this notification come from, and to which method is it sent? Or where and how do I register what that I get notified? ...

How to play a sound of paticular frequency and framework not found AudioUnit question

How to play a sound of paticular frequency and framework not found AudioUnit question1. I want to play a sound of paticular frequency. Can anybody tell me which function should I use for this purpose. 2.I can not use the iPhone SDK in AudioUnit Framworks. Compile time, the following error. Developer/Platforms/iPhoneSimulator.platform/...

CoreGraphics on iPhone, trying to draw a "pill" type ellipse

I'm trying to draw a pill type ellipse, as in Apple's Mail application which displays the number of emails in the inbox. Any idea why the following isn't drawing? - (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGFloat minX = CGRectGetMinX(rect); CGFloat minY = CGRectGetMinY(rect); CGFloat ...

Open Source Cocoa/Cocoa-Touch POP3/SMTP library?

I'm looking to write a sample application speaking to a POP3/SMTP server. Instead of re-inventing the wheel with BSD sockets and CFNetwork type calls, I'm curious if there is currently any open source libraries that already take care of alot of the dirty work? I've tried Googling without much luck for anything. Perhaps there's something...

How much of C++ is supported in Objective-C++

I want to make an iPhone app, but I am planning to make the framework in C++. Is it possible to use things like templates in Objective-C++. I guess really the question is, can I use boost? ...

How can I tell if a UIView is in front (visible)?

I need to detect which view is in front (currently visible). How can I do this? Here is a what I would like to do: if ( ! <<methodToTellIfViewAIsInFront>>) { [viewA prepareToDisplay]; [window bringSubviewToFront: viewA]; } ...

Determining Internet Availability on iPhone?

I am using NSURLConnection in an iPhone app as so: NSURLConnection *conn = [[NSURLConnection alloc] initWithRequest: request delegate: self]; The request has been setup and works properly, but I want to be able to provide a "connection not available" message to the user if there isn't a connection available. Is there a quick way to d...

Easy way to dismiss keyboard?

I have quite a few controls scattered throughout many table cells in my table, and I was wondering if there's an easier way to dismiss the keyboard without having to loop through all my controls and resigning them all as the first responder. I guess the question is.. How would I get the current first responder to the keyboard? ...

Reuse Cocos2d CocosNodes

I am trying to create a cool score counter in my iPhone game, where I created the digits 0 to 9 in photoshop and I want to update the score every second. What I am doing now is the following: In my init I load all the digit sprites into an array, so that the array has 10 items. I created a method which breaks down the current score (e...

how to pause/resume audio when iphone is locked/unlocked

Hi, Here's what currently happens in my app: Locking: iPhone Lock Button Pressed -> Audio Paused Unlocking: iPhoneUnlocked Button Pressed -> Audio Resumed -> Slide to Unlock -> App Appears I want the Unlocking sequence to be: Unlocking: iPhoneUnlock Button Pressed -> Slide to Unlock -> Audio Resumed -> App Appears I am using OS 2.2....

Is it a bad idea to remove the Status Bar in an application?

I am not sure, but I guess: if you make a game, don't have a Status Bar. Looks just not good. if you have an app, leave the Status Bar where it is. Might be useful. Is there any guideline by Apple when or when not to remove the Status Bar? ...

What's the difference between an URL Type and an URL Scheme?

Does anyone have a good explanation of that? ...

What happens if the user selects American English but I only provide "English"?

For example: I have an en.lproj subdirectory in my application bundle which contains all English content. Now, Apple says that users can choose not only a language, but also some kind of dialect too. So we may have here "American English" or "British English". The user might choose American English, and then what happens next? Like I u...