iphone

How to get total height of a UITableViewCell?

I have subclassed a UITableViewCell and within this class I want to get it's height. How can I achieve this? I have tried: self.frame.size.height but not sure if it is giving me the correct height value. ...

iPhone OSStatus -25308 or errSecInteractionNotAllowed SFHFKeychainUtils

I'm trying to access my iPhone's device keychain. I want to access in order to create a simple user-password value intended for a log in function. This is the code I'm using from SFHFKeychainUtils NSArray *keys = [[[NSArray alloc] initWithObjects: (NSString *) kSecClass, kSecAttrService, kSecAttrLabel, kSecAtt...

containsObject - why doesen't this work?

Hi. I have an array that I am trying to check wether or not an indexPath(.row) exists in. I use this code: if ([array containsObject:[NSNumber numberWithInt:indexPath.row]]){ NSLog(@"Yep, it exists in there."); } the array consist of the numbers 3, 8 and 2. The index path loads numbers fromm 0 to 8 in a loop. Can anybody see wh...

Get an iPad/iPhones unique information from your app?

How do you get the unique identifying information from an iPhone/iPad within an app? For instance, I want my app to send support emails to my website for users who have problems and I need to uniquely identify the phone number/id of the device it is running on. Is this possible, forbidden? ...

Should all .png files be in power of two on the Iphone?

Hi All, When creating an UIImage file from a .png to be displayed on a button, view/cell background, etc. for a standard Iphone application, should all of them be in powers of 2 for optimization reasons? ...

iPad <-> iPhone GameKit connection over bluetooth possible?

Has anyone established GameKit connectivity between an iPhone app running on an iPad and an iPhone app running on an iPhone? I tried the GKTank example and they won't connect. The iPad throws a "Error: 30509 -- Bluetooth not available.." error when trying to connect. ...

What are Private FrameWorks and how will we use them?

My Question is about private framworks in IphoneOS3.1SDK dirctory /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/PrivateFrameworks/ What are they ? and when i added one of them to my project, they didn't have any headers? How can i use them in my project? ...

iPhone/iPad Active Architecture? What is it? Why is it there? Who needs it?

What is this selection for? I have the Architectures set to 'Optimized (armv6 armv7)' so a fat binary should be getting build with both, right? So why does this need to set this in the menu? What does it do? ...

Failure when adding images to a thumbnail gallery

morning all, I've been browsing around trying to work out what I've done wrong when trying to add a thumbnail to a gallery view, but can't work out what on earth it might be. I'm trying to use the following code to stick a thumbnail onto a blank view: UIImageView *any = [[UIImageView alloc] initWithFrame:CGRectMake(a,b,70,60)]; any.im...

mkreversegeocoder and timer

i've read that with using mkreversegeocoder i can do a query every 60 seconds. my istance of mkreversegeogoder start after cllocation retrieve some info. What's the best way to do a 60 seconds query? a timer? or play with timestamp of my olddate? or some other stuff? thank's ...

Are Large iPhone Ping Times Indicative of Application Latency?

I am contemplating creating a realtime app where an iPod Touch/iPhone/iPad talks to a server-side component (which produces MIDI, and sends it onward within the host). When I ping my iPod Touch on Wifi I get huge latency (and a enormous variance, too): 64 bytes from 192.168.1.3: icmp_seq=9 ttl=64 time=38.616 ms 64 bytes from 192.168.1.3...

import pictures from the iphone photos storage to the canvas within uiwebview

I am currently experimenting with canvas drawing function in a uiwebview.Its a simple app that allows you to finger paint on the Iphone.Can someone point me in the rite direction on a problem I'm having.I need to be able to import pictures from the photos storage to the canvas within the uiwebview.Its built on Html,javascript and css.Wou...

UIWebView not loading URL

I'm having trouble getting a UIWebView to load a URL that I'm sending to it. Before I get into my code I was wondering if URL has to start with "http://" or can it start with "www."? I'm using an IBAction to push a UIView on to the stack: (IBAction)goToWebView { WebViewController *webController = [[WebViewController alloc] initWithNib...

MFMailComposeViewController and cancelling "save" action sheet?

i am using MFMailComposeViewController inside my iphone app. I notice that if i enter any text in the body and then press the cancel button, i am prompted with an action sheet with an option to save/don't save the unsent message. I have two questions: can I programmatically prevent the "save/don't save action sheet from appearing? MFMa...

Is there a way to enable UIDataDetectorTypes for UILabel?

Is there a way to enable UIDataDetectorTypes for UILabel? Currently UIDataDetectorTypes is only for UIWebView and UITextView, both are extremely slow when used in UITable cells. Especially when you are scrolling past tens of these cells. UILabel is the better choice for tables but it won't detect data. Any ideas? ...

How to load different XIBs for different device orientations for same viewcontroller?

The documentation says that if I want to support both portrait and landscape, I basically have two ways of doing that: Set up the viewcontroller's view so that the subviews autoresize correctly and make smaller changes programmatically at runtime If the changes are more substantial, create an alternative landscape interface and push/po...

iPhone - Memory Management problems

I am going over my code and trying to get a handle on proper memory management. This code: imageView = [[[UIImageView alloc] initWithImage:myImage] autorelease]; Causes my application to crash. I am using multiple view controllers within a nav bar controller. The app works fine: I can select a person from the first view controller (ta...

Using accelerometer to detect iPad lock switch trigger?

So for complicated reasons I am managing view rotations myself, and am only implementing UIDeviceOrientationPortrait as the autorotating orientation. Anyway, when one clicks the screen lock on the iPad, the device will rotate to UIDeviceOrientationPortrait, which will cause my code to rotate, which I do not want to happen. For instance ...

holding session state with zend framework in iframe?

I have a php site optimized for iphone, its currently running inside of an iframe in a uiwebview objective c wrapper. Everything currently works except for the sessions inside of the iframe, Im assuming this is due to the cross domain issue with iframes and sessions? my solution is to save the sessions to the db. Is this the best solutio...

Auto-scroll UITextView after text append if scrollbar is at bottom

I am continuously appending text to the content of my UITextView and would like to auto-scroll to the latest update, only if if the UITextView has already been scrolled to the bottom. Any ideas on how this could be implemented? ...