iphone

iPhone noob - different method types?

My apologies in advance for what is probably a really dumb question. I'm familiar (or at least getting familiar) with instance and class methods in objective-c, but have also seen method implementations that look like this: #import "Utilities.h" #import "CHAPPAppDelegate.h" #import "AppState.h" @implementation Utilities CHAPPAppDeleg...

How to manage images (dimension-wise) in iPhone OS 3.1x / 3.2 / 4.0?

iPhone is 480 x 320, iPad is 1024 x 768, iOS 4 is 960 x 640. What is the good practice of managing images for 3 resolutions? Say the app wallpaper as an example, the iPhone is probably a 50%-reduction of the iOS4 one. But it is also tempting to design one dimension (1024 x 768) for both devices (iPad and iOS 4 phones). Any suggestions...

app icon not showing in iphone simulator

I have a 57x57 PNG file in the root of my bundle (update: and added to my project), and the "Icon file" setting in my .plist file has the correct filename, but when the app is installed to the simulator, the icon is the default grey/white one. I've tried deleting my app from the simulator (both through the simulator and through rm -rf o...

Confused about copying Arrays in Objective-C

Lets say I have an array X that contains [A,B,C,D,nil]; and I have a second array Y that contains [E,F,G,H,I,J,nil]; If I execute the following: //Append y to x [x addObjectsFromArray:y]; //Empty y and copy x [y removeAllObjects]; y = [x mutableCopy]; What is the value of y? is it?: [A,B,C,D,E,F,G,H,I,J,nil] Am I performing the ...

What will happen if my iOS 4 iPhone app gets executed on an iOS 3.2 phone?

I assume it will just crash, right? If I develop an iPhone app that uses the iOS 4 SDKs and it makes it's way on into the app store, how can I ensure it doesn't get downloaded by a person running an older version of the iOS? Thanks in advance for your help! ...

Figure out UIBarButtonItem frame in window?

Hey guys, UIBarButtonItem does not extend UIView, so there is nothing like a frame property. But is there any way I can get what is it's CGRect frame, relative to the application UIWindow? ...

Do i need to uninstall my current version of the iPhone SDK (v3.2) in order to install the latest GM (v4.0)?

Do i need to uninstall my current version of the iPhone SDK (v3.2) in order to install the latest GM (v4.0)? Or can I just download the latest SDK and run the installer? Thanks so much in advance for your help! ...

Set a grouped UITableView to start at a given section?

I have a grouped UITableView that has basic data inside it, but I would like to start the UITableView at a certain section when the app loads, can this be achieved? Thanks Mark ...

My UITableView has duplicated rows

Im not sure why, but my UITableView, which isnt anything fancy, is showing repeating rows when it shouldnt be. It seems that the rows that get added when the user scrolls (i.e. the rows that are off the screen to start with) are getting the data for the wrong row index. Its almost like when a new cell is de-queued, it's using a cell th...

How to manually throw a compiler error in GCC and Xcode

In xcode, while compiling apps with gcc, I want to throw compilation time errors if things like NSZombieEnabled is on for a distribution release, thus ensuring that compilation will fail and I won't accidentally do something stupid. I did some googling, but could not figure out how to cause the compiler to bail if a certain condition is...

UITouches not detecting.

Hi, My UItouches is not detecting in my Slideshow nib file. What is the problem? Can anyone help? @class Slideshow; @interface RootViewController : UIViewController{ PreferencesController *preferencesController; Slideshow *slideshow;} Slideshow Implementation @implementation Slideshow - (void) touchesBegan:(NSSet*)touches withEven...

how do you convert your aps_developer_identity.cer to a .p12 to use with windows

I am trying to convert my apns cert to p12 so i can use it with .net ...

Dealloc'd Predicate crashing iPhone App!

To preface, this is a follow up to an inquiry made a few days ago: http://stackoverflow.com/questions/2981803/iphone-app-crashes-when-merging-managed-object-contexts Short Version: EXC_BAD_ACCESS is crashing my app, and zombie-mode revealed the culprit to be my predicate embedded within the fetch request embedded in my Fetched Results C...

What are the implications of multi-tasking in iOS 4.0 for developers?

I just watched this video from Apple that shows multi-tasking on the new iPhone (running iOS 4.0). What are the implications of multi-tasking to developers? Include both positives and negatives. For example what happens if the user decides to launch two resource-intensives apps at the same time, one of the apps crashes and progress in...

How to generate sound in IPhone

I want to create App which can generate sound and change pitch. My problem is I don't know what libray can make what i want? Anyone can help me? Thank you. ...

iPhone4 960x640 - impact to apps?

Possible Duplicate: How to accommodate for the different screen resolution of iPhone 4? What does the new resolution mean for existing applications? Do the devtools make it easy to support new resolutions without changes, if so how? what happens to apps by those developers who dont do things properly to leverage this? What a...

Speech Recognition in iPhone app

Hello, Is it possible to access speech recognition in an iphone app,similar to voice dialing available in iphone 3gs...when the user says something that related information needs to be fetched... Is there any particular api for the same? I have seen apps on itunes..but how to go about it? Thanks in advance. ...

facebook auto loggin

I want to save the login information of Facebook after closing the application. So every time when user opens application, no need to login again. Is done by saving the session object into a plist? I'm using facebook connect. Thanks for the help ...

How to Send sms from ipod ?

Hi i want to send sms from ipod and also i will check whether it is being recieved by receiver (user) or not ? Is this possible ? Thanks in advance.... ...

iPhone: UITableView number emails style used in Mail app

I am looking for how to style a label in a UITableView cell, so that it shows how many children/messages are in the next view controller. This is used in Apple's Mail app, to show how many messages are in the inbox or account. I am sure that this is a UILabel, but what font, color and how to make the oval around it? ...