iphone-sdk-3.0

Why is Gamekit designed this way? Even in Client mode all notifications are received

We are not using GKPeerPicker control. We are implementing custom UI. We have done some traditional client-server apps in different languages/platforms. In Gamekit, I have one in server mode and rest of them are in client mode. I am not using Peer mode. Yet, when ever some new client connects all the already connected clients are implic...

how to delay application quit time in iphone sdk?

Hello all, I want to register my app for push notification when my application terminates so i think if i delay my app quitting time it could be possible.Does someone knows how to delay application quitting time? I think this method [self performSelector:(SEL)aSelector onThread:(NSThread *)thr withObject:(id)arg waitUntilDone:(BOOL)wa...

IPHONE: provisioning profile expiring every 2 months?

Is it just me or the provisioning profiles created on the developer portal expire every 2 months? Why is that insanity? Is there any way to create a provisioning profile that will last for the entire period of the annual subscription? I have contacted Apple but they simply did not answer. Is Apple insane? any thoughts? ...

Assign IBOutlet from appDelegate variable in an Array in a view Controller.

Hello Everyone, I have what seams simple, but I just cannot get it to work. I have a variable coming into a ViewController(presented by a modal view) and in the viewController I access the appDelelgate to get at a variable in the passed NSArray. I can verify that the variable is availible with my NSLog just before I make a mess of assig...

NSFetchedResultsController fetching and displaying results combined from two entities iPhone SDK

Im am trying to improve a ToDo app for the iPhone. I have two entities, 1. Task 2. Project A project can have multiple tasks but a task may have none or one project. I have been trying to display both in the same UITableView using NSFetchedResultsController is it possible to fetch two entities and display/sort them both from the same...

Use Core Data For Storage for an existing Iphone project?

Hello, According to the Apple Core Data Tutorial, in order to use Core Data you have to: In the Options section, select the switch to use Core Data for storage. How do it for an existing project? Do you have to import some files? Can that setting be activated later on? Thanks ...

problem with transparent text-background in tableview

hey all, i've got an annoying problem in my tabelview..i was able to achive color-changing cells (blue/white/blue/...), but now i'm in trouble with my text which has a white background on the blue cells. i've tried for testing to set a background color to red // try to set the backgroundcolor of the text ??? cell.textLabel.text.b...

Can iPhone SDK accesses bandwidth usage data for an Application session?

I want to keep statistics of bandwidth used in an application when the application is used. Is there any way in iPhone SDK to do it (or I should go to lower level, keep logging of all network requests)? ...

Tap navigation bar to scroll to top

I have a really long UIWebView, and I need to add a way for the user to tap the UINavigationBar to scroll to top (something like the Facebook app, where it's little glow when you tap). How can I do this? ...

detecting heartbeat peakpower using iphone sdk?

Hello all, i want to detect heart rate using iphone sdk does someone knows any method for calculating heartbeat rate? ...

Error while executing symbolicatecrash command "Can't exec "/usr/bin/xcode-select": No such file or directory at /usr/bin/symbolicatecrash"

Hi all, My application get crash in apple's testing phase. I have crash log. When I am execute symbolicatecrash command, I get an error Can't exec "/usr/bin/xcode-select": No such file or directory at /usr/bin/symbolicatecrash or some how command get executed then it shows same crash file. My .app & .dSYM files are in same directory....

How to convert a NSString to UTF-8 format string in iphone sdk?

I have localization in my app(english,spanish,italian).The client sent me strings files but some characters are strange how do i correct them? i have figured out that the client used Mac OS Roman encoding how do i convert this to utf-8. for example Nürnberg is converted into N√ºrnberg when client send me now i want to reconvert it. ...

Check if a UIAlertView is visible

I have a situation where I would like to pop up an alert view, but the event that shows the alert view could occur as often as every 5 seconds. I'd rather not have a stack of alert views for the user to click OK on so I was wondering. How do you check if a UIAlertView is currently showing? ...

Send programatic email through Objective-C

In an iPhone app I'm developing, I need to send an email programmatically (read, not allowing the user to see where the email is going) similar to the PHP mail() function. Is there a way to do that? Thanks in advance. ...

Record the Application session time using iPhone SDK?

I want to record the duration of Application executed in order to keep logs of activity of users. Should I use a global NSTimer to record the time? or is there any better method? Sample codes are appreciated. ...

How to repro user's experience?

I've provided a couple of users with an ad hoc copy of my app. They sync fine but the app crashes just after loading. I've tried everything I can think of to repro it and everything always goes just fine for me. I've removed all profiles from my phone and removed them from the library\mobiledevices folder. No matter what I do, the ap...

iPhone SDK Accessing Address book company contact

Hello I have been able to use the SDK to access Address Book contacts for people, but whenever I pick a contact who is a company, my app crashes. does anyone know the property for the company field? does anyone know the code to make it work? thanks in advance ...

iPhone MapKit error.

I just started the use of Mapkit Framework. I got a sample code from here. But when I build the code it returns the following error. /SourceCache/GoogleMobileMaps/GoogleMobileMaps-201/googlenav/mac/Loader.mm:195 server returned error: 407 It does not shows the map. I am confused whether the code has an error or there is some error w...

Viewing CSV attachment in MFMailComposeViewController

Hello everyone, I have an application which generates a csv-file and then attaches it to an email using MFMailComposeViewController. This all works fine. My problem is that I would like to add an option to view the contents of the csv before sending it. This functionality exists in Mail, where an attached csv can be displayed as a spre...

Has anyone used Buzz Andersen's Simple iPhone Keychain code?

You can find it here. I'm trying to understand his sample code in order to write a simple program with that stores passwords into the keychain and retrieves them for login. Has anyone done this before? It would be most appreciated if I can see any examples you may have. ...