iphone

Notification of or detecting screenshot being taken?

Is there a notification or other mechanism of being informed that the user is taking a screenshot with the home/power buttons? I've seen threads about wanting to disable the taking of screenshots, but that's not what I'm looking to do. I have a photographer client who's concerned that his works will be copied by means of users taking s...

UITextFieldDelegate != IBAction backgroundTap

Hi All, The scope of this question is IPhone 3.1 sdk (app running in simulator still) I have a table view that has a cell with a UITextField in that cell. The table view is grouped, and has one section with just a couple fields. Im NOT using IB so backgroundTap is out of the question (as far as i can tell at least). When i click the...

iPhone reverse geocoding: give all possible streets/suburbs??

I know Core Location isnt always accurate on the iPhone. Is there a way to use the location (lat/long) along with the accuracy to then grab all of the possible suburbs/streets in that area? So instead of using the reverse geocoding and having it guess the 'best possible suburb/street, is there a way to make it give an array (or in some ...

iPhone sideways scrolling of a div

I am coding a website for iphone. Some of the content (images and strings I have no control over) is too wide to fit in the 320px viewport. When I first encountered this, it caused the entire page to revert to web page view (scaled small text). So, I put the wide images in a div with CSS style="width:320px; overflow:scroll;" This stop...

What's the default size for the UIImage in a UITableViewCell?

I want to put a UIImage in the left side of each row in a UITableView. This is pretty standard, and is supported directly by UIKit. But putting in a (large) image causes all kinds of wonkiness, so presumably I'm supposed to scale the thing correctly myself. But none of the docs give a default size for this image using the standard out of...

How to change number of tabs in tabbar controller application ?

Hi I am developing an iPhone tabbar application with 5 tabs . I want to show only two tabs at the launch time such as one is "locate me". When the user taps on the locate me tab another 3 tabs will be shown and can use the current location. I want to do some thing like "urban spoon" . I am using the interface builder for all the stu...

how to scale and get mirror image after rotating a UIImage?

hi all, my app has a photoshop like feature wherein the user can create a new image which is a combo of "n" number of images(sub imageS). the user can rotate, flip and zoom these sub images by selecting them one at a time. and in the end save the whole canvas as a image. My problem is once the sub-image is rotated and then if i try to f...

iphone voice memos 'ping' sound

I'm writing a voice recording application, and I'd like to play the ping-ping sound that the voice memos program plays when it finishes recording. Is there any way to accomplish this programatically? If not, does anyone know where I can find the sound? Thanks! ...

How can I get information about who called a method?

I'd like to get some information on who called a particular method. Namely, if possible, getting the line number and file name of the method that made the call. Akin to FILE and LINE, except one level down in the stack. This is possible in high-level languages, but any way to do it in Objective-C? - (void)myMethod { NSLog(@"I was...

Vcard format for iphone

after retrieving a person from address book ,should change it into a vcard format something like appending BEGIN and Atlast End ,is there any specific format to be folowed in iphone ...

iPhone: leaks from other Apps taking up RAM??

I'm reading some people stating that if another (3rd party) app on someone's iPhone has been leaking memory, that this may reduce the (mystery) amount of RAM your app would otherwise have available. This confuses me -- does not all app memory get released when the app is closed by the user? And only one app is open at a time on iPhone? ...

Releasing NSArray containing NSDictionary objects

I am having difficulty getting my head around memory management in the following segment of code on iPhone SDK 3.1. // Create array to hold each PersonClass object created below NSMutableArray *arrayToReturn = [[[NSMutableArray alloc] init] autorelease]; NSArray *arrayOfDictionaries = [self generateDictionaryOfPeople]; [arrayOfDiction...

Defining NSString

How can I define a NSString with name "media:thumbnail", it's giving me an error. error:bit-field 'media' has invalid type . ...

iPhone Address Book custom property

Hi, I am developing an application which is similar to native contact book app of iphone. I want to add additional property/field in native iphone address book database. e.g. network carrier of each contact (AT&T). How to access the database of native address book from our app? Is that possible to do? Please help!! Urgent!! help woul...

What are the steps in implementing Apple Push Notification?

Hi everybody, I am new to this topic and require some guidance in implementing Apple Push Notification in my application. I have created my appID and also configured Apple Push Notification for the same. I have downloaded the provisioning profile and installed the app on the iphone. I have also written the following code provided by App...

Statusbar overlaps ViewController

When I open some other view controller from my main view controller, the some other view controller gets opened with no issues. But when I dismiss other view controller and coming back to my view controller, the status bar overlaps my main view controller. Size of our view is 460 and 20 pixels for status bar is given. Similar question...

How to Detect Touch event in UIWebview

Hello, How to Detect Touch event in UIWebview? i am not able to handle touch event in UIWebview. Thankyou ...

NSURLConnection Not Returning Data

I have a rather unusual issue here. The code below is running fine and the data is sending to the source fine, but none of the NSURLConnection triggers are returning anything. The only items being logged are in the function that the request is sent in. Any ideas? // code starts above here NSData *myRequestData = [ NSData dataWit...

iPhone: NSXMLParser's foundCharacters method called multiple time for single tag

hi all, i am able to parse the XML file. but i am facing strange error. My XML file format is like this <contact> <contactServiceTag>3B92E6A7-B599-EAE9-1CB7B5592CB8695C</contactServiceTag> <contactDeletedBoolean>0</contactDeletedBoolean> <contactLinkStatus>Stored</contactLinkStatus> <contactName>P4</contactName> − <con...

GPS on iPhone and Android...is there any way to get the EXACT location of the phone (not approximate)?

I know that it's mostly "approximate". But, I must know the EXACT location of the phone, regardless of battery life or whatever. I need the exact location of the phone! Is it possible? ...