iphone

How do I pull an integer out of a NSDictionary and put it in an integer?

I've got an NSDictionary that was initialized with a plist that, among other things, contained count followed by 32 and I want to get at the value for count. How? I know how to get it into an object via [dictionaryObjectName objectForKey:@"count"] But to me, the value I'm obtaining is not an object. If I have to specify an object,...

view, modify, and email .pdf's on iphone sdk 3.0

I need these features for a future application. ...

iPhone NSURLConnection through Proxy+Auth

I am using NSURLConnection to make connections to a server, through a proxy that requires authentication this fails. The proxy settings are set under the WiFi, but the connection still fails. I believe there is a part of CFNetwork that can fix this, but this might be just for streams and I am unsure of how to implement it with NSURLConne...

Limits on iPhone push notification sounds?

Does anybody know of any limitations on the sounds that can be played when an iPhone app receives a push notification? Specifically, is there a maximum sound length? Also, I am assuming that the volume of the sound will match whatever the user has set their ringer volume to, and if set to vibrate mode, the phone will vibrate instead of...

GameKit and GKPeerPicker on 1st Gen iPhone and iPod Touch

This is my current set up for my multiplayer game: A view that gives connection tips and warns the user that multiplayer will not work on the 1st Gen iPhone or ipod Touch. There is a "connect" button that pushes the game view and starts the GKPeerPicker. Unfortunately, I don't have a 1st Gen iPhone or iPod Touch to test what happens...

iPhone SDK - Adding zipped content in resources and then unzipping into Documents folder

Hi, I have some resources (zipped) that needs to be shipped with my iphone application. When the app launches for the first time, this zipped file needs to be moved/copied to the Documents folder and unzip it there. User can then add more files to this path from the application. Can someone please suggest how can I achieve this? Thanks...

polyines on iphone

Hi all I want to know how to display the route between two Points on map using mapkit framework in iphone Is there any Api that can used to display the route between two Pins. If not Is Polyines is standard to show route between two pins.Can we display the route on Map with the help of polyines on iphone or is it dummy route...

how to run my iphone 2.0 app in iphone os 2.0 and also 3.0 and above os

i have iphone with os ver. 2.0 i read that for app store all appplication must be run 3.0 os.so how could i make my application to run in both firmware.is there a way i can detect if os ver.>3.0 then run different statments alse run statments for lower than 3.0 os.currently i am using this. #if __IPHONE_3_0 cell.textLabel.text=cellValu...

Adding glowing effect to the circle.

I draw a circle in the drawRect method and fill it with a color. Now i need to add a glowing effect to the circle. When i click on a button, the circle needs to glow. How can i do this? Any help will be greatly appreciated! Thanks in advance!!! ...

Dismiss ViewController from TableViewController

I have presented the viewController which contains a navigation controller whose view is loaded from another nib with the UITableView in it. I would like to dismiss that presented viewController from the UITableViewController. I have tried every combination of self.parentViewController and self.navigationController and self.navigationCon...

iPhone AudioSessionSetProperty

Hi, I got the below code from some example code. What could possibly cause it to throw a CAXException? I've loaded the AudioToolbox framework, am I missing anything? Thanks, Tee UInt32 category = kAudioSessionCategory_RecordAudio; XThrowIfError(AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(category), &category),...

UITableView not reloading section and contents

I have a refresh button in the toolbar that regenerates an NSArray and attempts to reload the contents of the table. However, whether I have: if (boolCondition) { [self refreshTableDataSet]; [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:kTableSectionOfInterest] withRowAnimation:UITableViewRowAnimationFade]; } or:...

UIWebView delegate release confusion.

Looking at the UIWebView docs, it says that Before releasing an instance of UIWebView for which you have set a delegate, you must first set the UIWebView delegate property to nil before disposing of the UIWebView instance. This can be done, for example, in the dealloc method where you dispose of the UIWebView I'm creating a webvie...

Cell Content Disappears after -reloadSections:withRowAnimation?

I have a custom cell that displays fine when loading the initial view. However, when the cell is deleted and inserted using -deleteRowsAtIndexPaths:withRowAnimation -insertRowsAtIndexPaths:withRowAnimation (This is just one phase of the desired code, eventually it will be replaced with a different cell during editing), the cell content s...

how to stop UIAccelerometer?

I have implemented application in which there is one speedo meter and three buttons. 1)Start 2)stop 3)review When i press the start button than UIAccelerometer is start when i press stop button than UIAccelerometer is stop. when i press review button than in next view it will show hisry of time. My problem is that: When i press the star...

How to set UIButton titlelabel font size programmatically? -iPhone SDK 3.0

Hi All, I need to set the font size of the titlelabel of a UIButton programmatically...I am using iPhone SDK 3.0.Please help me Thanx in advance, Regards, Syam S ...

iPhone - Get Position of UIView within entire UIWindow

The position of a UIView can obviously be determined by view.center or view.frame etc. but this only returns the position of the UIView in relation to it's immediate superview. I need to determine the position of the UIView in the entire 320x480 co-ordinate system. For example, if the UIView is in a UITableViewCell it's position within ...

NSInvalidArgumentException

Hello, I Am creating an iPhone application which displays an UITableView at the start with some text in the cells. When a user taps a cell it should transition to another view. When I run the application in the iPhone Simulator and click on a cell I get the following error: 2009-09-23 12:20:03.554 ZDFMobiel[751:20b] *** Terminating app...

Send outline as email using MFMailComposeViewController

I'd like to send a text outline via email using MFMailComposeViewController. I'm currently doing this by creating a HTML version of the document and setting this as the body of the message.This works fine when viewing the email in MFMailComposeViewController, but on the receiving end (MobileMail.app, GMail Webinterface, OSX Mail.app) the...

iPhone - Loading ActivityIndicator

I am aware of my problem but cannot find a solution. When the button is pressed it tells the UIActivityIndicatorView to startAminating and also retrieve data from a XML feed. Problem I am having is it runs the whole event before starting the animating of the loader, so the loader never spins before the data is retrieved. How can I sta...