iphone

Device XCode iPhone programming selection

I was wondering how to restrict an iPhone app only to run on an iPod Touch in XCode. Do I edit the .plist file that is in the project or can iTunes Connect handle that? Also what does the required device capability optional plist entry mean? ...

iPhone center text ShowTextAtPoint

I am looking for a way to center text on the iPhone using the context.ShowTextAtPoint() method. ...

iphone sdk - bringing up viewcontroller in shouldContinueAfterSelectingPerson:

Hi guys In my app, after selecting a contact I would like to then directly bring up another view window. I'm in the method - (BOOL)peoplePickerNavigationController: (ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person { and after selecting the person (in the above method, which i...

How to have custom color for tabbars and navbars?

How to set custom color for the tabbars and navbars like in this app? http://itunes.apple.com/us/app/ifood-assistant-by-kraft/id296246161?mt=8 ...

Why isn't my custom iPhone delegate working?

Hi all, I'm just trying to build a simple delegate, it compiles successfully but it doesn't seem to do anything right now. Please review my code below, both FirstViewContoller and SecondViewController have separate xib files, the SecondViewController has a button hooked up to the myMethod of course. I've been learning my way around obj...

iPhone Memory Warning with Camera, but not Photo Library

I'm consistently receiving a memory warning right after pressing the "Use" button on the UIImagePickerController in Camera mode. I used Instruments for the first time to try to figure out what's going on, but I don't see a problem. Before opening the image picker controller, my app is using ~2.0 MB of memory. It looks like both Camera ...

Being on two iPhone developer teams

When I am invited to join a team through the iPhone Developer Portal, should I create a new Development Certificate in my name specifically for that team, or should I simply use the Certificate that I already have? (For my own business) ...

How to Rollback from iPad beta SDK to iPhone SDK 3.1

If I update to the iPhone SDK 3.2 beta, will I then be able to rollback to iPhone SDK 3.1.2 (xcode 3.2.1) ? ...

How to create NSIndexPath for TableView

I need delete row 1 of a table in a function i have defined. In order to use deleteRowAtIndexPath you must use an IndexPath with a section and row defined. How can I create an indexpath like this? An array with the int {1} as it's only member will crash; the nslog message states that the section needs to be defined as well. *Edit -> ...

Core Data: How do I maintain without retain?

I am trying to debug a very nefarious problem with some iPhone Core Data code. The setup is this: I have a thread which exists to poll a web service and send its results via NSNotification to the main thread (passed in the userDict, a bunch of strings and NSNumbers). I'm using Tim Hatcher's notification library to pass to the main threa...

record audio to memory

Hi Guys, I was wondering if we could record data into the Nsdata* instaed of saving it to a file and reading it back to process. All the examples show the way to record audio to file. Thanks, ...

How to port a Cocoa app to iPhone-OS?

I am about to create a Cocoa app and I want to ensure that one day I can easily port it to the iPad or even the iPhone. How can I plan for this in advance? I know I will have to redo all NIBs and probably design a different workflow. But what about the code? Just replacing every NSsomething with UIsomething won't cut it, right? Any ti...

Is there any way to modify a UITableView's separator cell?

My app will be using slightly thicker separator lines in tableViews - about 3x the thickness. I have already done this in some areas by setting separatorStyle to none and customizing cell backgroundViews with custom backgrounds that include my thick separator. The issue with this method is that it only applies to real rows. Thus if I ...

On iphone, how can i get the system date in the proper format

Based on local user settings, I want to get the correct date format. For example, it could be any of these: 5 Jan 2010 January 5, 2010 1/5/10 And how about on windows? Thanks. ...

Where can I find the current iPhone SDK Agreement?

Where on the dev portal can I find the most recent version (and ideally, old versions as well) of the iPhone SDK Agreement on the iPhone developer center. Yes, I'm a registered developer and I have access, but I can't figure out how to find it. I've tried looking around in the reference library and the developer program portal, but I ca...

StatusBarHidden not working

Hello, Stumped on this one. I am using a section of code posted here to rotate a view into landscape. Rotate, sizing and animations are working great, but when the view rotates, the status bar hangs around as a thin gray strip, which is the same size as the hidden status bar. Here is the code: [UIView beginAnimations:@"View Flip" co...

dialing on iphone/ipod touch not working with documented procedures

I'm trying to set up an iphone app to the phone number of a various sports store using the tel:// url passing method- I am developing on an ipod touch- usually on the touch you see the error message "Unsupported URL - This URL wasn't loaded tel://99887766" when you try and dial a number. I cant get this message to appear on the simulato...

'Could not instantiate class named UITableViewCellContentView' iPhone 3.1.2

I've created a nib for a custom UITableView cell and followed the documentation and different tutorials to get past this error and it just won't let up. I researched this error and people say it's when you #import a header but you didn't add the Framework. Well, UIKit is automatically added, and I removed and added it again for good meas...

GL rendering thread on the iphone, is it worth it?

I am new to iphone and haven't done any threading on it at all. It seems that calls to drawElements are taking a big chunk of my processing time, so it makes me think that a large amount of rendering is being done before the code is allowed to continue past the call. does anyone know how the parallelism of openGL works? or how it works ...

What is the naming convention or coding standard for categories in objective-c?

I saw an example in The iPhone Developer's Cookbook that extends the UIDevice class using categories. @interface UIDevice (Reachability) // some methods @end Typically classes are nouns and methods are verbs. From my point of view categories are similar to subclasses, so I would name the category a noun such as NetworkedUIDevice. H...