iphone

Error with UITableViewCell

I am getting an error of: * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull isEqualToString:]: unrecognized selector sent to instance 0x26e9d68' I have a FriendViewCell class which has a UIImageView and two other labels as an IBOutlet. Setting the property and synthesize it (basic stuffs). I ha...

UIScrollView does not resize correctly

I have code to rotate and size a scrollview, such that when the iPhone is landscape the orientation is correct. This is what the view looks like before rotating: The scroll view is in yellow. This is what it looks like after: This is the log statement i put after setting the new frame for the scroll view, and you can see that it i...

javascript/iphone/mobile two-finger-touch question.

I'm building a website with some touch events and need to know how to make my touch events* only work when only 1 finger is touching (*these events prevent default), but I want to disable these events and restore defaults when 2 fingers are touching (to allow zooming, and keep the 1 finger events from being confused by 2 fingers). Examp...

Add a UINavigationBar to a UITableViewController without a UINavigationController

I have an existing UITableViewController that was previously being used in a UINavigationController. I need to convert it to be presented as a modal view. However, I still want to have a navigation bar at the top. I know this sounds strange- why not present it in the UINavigationController if I want a UINavBar? I want to present it with...

ASIHTTPRequest vs NSURLConnection

Just wondering which is faster in terms of performance and usability? Or if there's anything better out there? ...

How to send a meeting request by email from SharePoint 2010 to an iPhone

As part of a Windows Workflow hosted on SharePoint we want to send a meeting request to non-active directory users, some of whom will most likely use an iPhone. We are currently using WebDav to talk to Exchange which sends out the email containing the request. The mail is successfully received as a calendar item in Gmail, Hotmail, Window...

Memory crashes in iOS with real memory usage only at 5megs

I have been hunting down memory leaks for some time in my app. As of right now, as I flip back and forth between two views while watching the memory monitor instrument, the real memory fluctuates between 5 and 6 megs. This is all fine -- as far as I can tell everything is getting released properly when I pop back off a view. However, the...

Iphone App - Largest File size you can download without using WiFi?

If I try to download an app that is lets say 100 MB it will not allow me to do it on my phone. Or if I am not connected to a WiFi. Does anyone know where they cut that off? Like at 30 MB or something you have to be connect to WiFi? Thanks ...

Find nearest airport using iOS

I am writing an App that needs to find the closest international airports using the iPads GPS. Is there anyway of doing this easily? ...

In Titanium how do I execute a button click event from code?

I tried btn.click(); And the error message is 'Cannot call property click in object ti.modules.titanium.ui.ButtonProxy@44f61. It is not a function, it is "object"' ...

What happens to OpenGL ES origin on iPhone under device orientation

Im trying to interface with a project which defines its supported orientation by: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation { //making sure that the tour is displayed in landscape return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); } I built my program under the d...

iOS Navigation Breadcrumb Trail

Basically, I have a client that wants a breadcrumb trail implemented in the navigation bar. I realize Apple doesn't recommend this behavior, but the app I'm building is for internal use only and won't be submitted to the App Store. I need something along the lines of what AirVideo uses in their iPad App. Are there any navigation control...

iPhone form elements in HTML

I'm planning on recreating some fo the iPhone form elements in HTML/CSS but I'm assuming this already exists. I tried googling it but didn't find anything. Anybody seem something like this already in existence? ...

Pop menus in iphone

Hi, I want to make application that when i click on button or menu it show transition to right side .Want to show pop up on selctingbutton or menu plz suggest me any tutorial,link,code........its very urgent ...

Add UIStuff in an UIView

Hi, I want to add my buttons in a UIView, like then I can hide or not them. My button's code: carte1J1=[UIButton buttonWithType:UIButtonTypeCustom]; carte1J1.tag=11; carte1J1.frame=CGRectMake(60, 240, 50, 73.0); [carte1J1 setImage:[UIImage imageNamed:[NSString stringWithFormat:@"%@",imagecarte1] ] forState:UIControl...

Does NSArray initWithObjects: retain objects?

When adding objects to an NSArray using "initWithObjects" can anyone confirm for me that the items are retained. I am pretty sure they are, but can't find it mentioned anywhere with regards to initWithObjects? // CREATE DRINKS Coffee *drink1 = [[Coffee alloc] initWithName:@"Flat White"]; Coffee *drink2 = [[Coffee alloc] initWithName:@"C...

CLLocation to work in sleep/screen lock mode (iOs < 4.0)

I need to get the user's location even if the phone goes to sleep/screen lock mode. I've tried enabling location services in background mode by adding key to the info.plist file, but this method requires iOS >= 4.0. Is there any alternate method to get the location manager working in screen lock mode ...

iOS: How can one use custom fonts in UIWebView?

How can one use custom fonts via @font-face in a UIWebView? I know that it's possible to use CGFonts to render custom fonts on the iOS, but in my specific case I need the font to render inside a HTML document within a UIWebView. Is this possible in any way? ...

output different from simulator and iphone device

The output from simulator and iphone device is different. what is the actualy problem?can download the sample code from below link. the path of the road is not the same for both. i also need to move the car from start to end with the validation. currently my validation is not working.all the details are in Readme Link Download (1.3MB) ...

iPhone handling dynamic URLs

My iPhone app consumes a Java web service in order to get data. At my company we have 3 environments - development, testing, production. Each environment's URL, that points to the web service, is different. Thus, each time we promote the project to the next environment I must change the hard-coded URL in the iPhone code to match that of ...