iphone

Retrieve iPhone Address Book sorting preference programmatically?

Is it possible to detect the sorting technique used by the Address Book on a particular user's phone? (For instance, "sort by last name" or "sort by first name".) Thanks. ...

iPhone SDK: Tell UIWebView not to load images and CSS just plain HTML and JS?

Is there any way to tell a UIWebView not to load images and CSS for faster rendering? Solution: URL filtering for UIWebView on the iPhone ...

Cant set two NSStrings into one UITextView

Hi, I want to get NSString * test1 = @"one"; NSString * test2 = @"two"; to my UITextView. I wrote this: uitextview.text = (@"%@, %@",test1, test2 ); but the UITextView only gets the second NSString... Why? ...

Export Core Data information to Excel Sheet

I want to have an iPhone app where the user can export the data held by the application to an Excel spreadsheet (as well as a host of other formats). So the idea is that each entity would be a new row in the sheet, with the attributes being different columns. Is this possible? ...

TTScrollView with nested UIScrollView

I want to have two pages displayed: One contains an image, this should not be scrolable as the image fits the screen nicely. The second is a longer text which has to be scrolled vertically. I tried the classical approach of a big UIScrollView where I just change the offset of the x-value, yet this leaves me with the issue that the image ...

Iphone-SDK: accelerometer x,z to 360 degrees?

How is it possible to take the x,z values produced by the accelerometer and translate it as values that will represent a point in 360 degrees of the iphone rotation? (LANDSCAPED) it can be -2 to 2 (0 for the middle point) and it can be 0 to 360, as long as it represents a value for the whole iphone rotation. I need it for a Landscape ga...

UIView drawRect does not draw anything for me?

Hi, I made a UIViewController class. Displays fine. I then made a UIView class to use with it. In InterfaceBuilder, I set the UIView class to my own custom UIView class. I then overrode the drawRect method in that class: - (void)drawRect:(CGRect)rect { NSLog(@"Yes we are drawing with width: %f", rect.size.width); CGContextRef...

Swap iphone resources in SVN working copies

We have a development environment with a lot of different settings for our sandbox instances, staging servers, and production environment. In our iphone code, we keep these settings organized in plists. Anyone have references to best practices for managing the swapping out of plists based on the current environment? Without having to ...

Canadian GST/Accounting Question for iPhone App Developers

I realize this isn't exactly a coding question, but it's the best place I can think of to reach fellow iPhone developers. I apologize if this causes any issues... We are a Canadian corporation that files GST and filled out the Canadian GST/HST Form 506 which allows apple to collect and remit GST on our behalf. We recently received a "GS...

Copy part of scaled UIImage

I want to be able to scale and position an image, and then save just part of that image. I currently have a UIImageView inside a UIScrollView. After zooming and positioning the image I hit a button and then have the following code. // imageScale = current scale of UIView // get the new width and height of the scaled UIView float scaledI...

iPhone CLLocationManager TrueHeading iPhoneSimulator

In the iPhone Simulator the CLLocationManager's UpdateHeading gives a value of 103.27 for TrueHeading. I understand that these values are hard coded to Apple's world HQ in California. But shouldn't TrueNorth from CA be under 45 degrees? ...

Problems Building For Both iPhone OS 3.1.2 and 2.2.1

I'm trying to get my app to run on a 2.2.1 device despite being built against the 3.1.2 SDK. The table below lists my results Deployment |Base |Device |Result Target |SDK |Version | -------------+------------+------------+------- 3.1.2 3.1.2 3.1.2 Runs OK 2.2.1 3.1.2 ...

Objective C terminology: outlets & delegates

I'm having issues understanding the concept of outlets how the iPhone deals with events. Help! Delegates confuse me too. Would someone care to explain, please? ...

iPhone: add an image to grouped uitableview section header?

I know I can change the way the section header looks by implementing viewForHeaderInSection: The thing is I want to add a UIImageView to the right of the header text without modifying the look of the already existing label. I can create my own view and add a UILabel and a UIImageView, but then, I'd have to setup the label color and fo...

iPhone UIImage Method crashes

I have this method in my Car.h class file: @interface Car : NSObject { NSString * name; UIImage* image; } + (id)withName:(NSString *)name withImage:(UIImage *)image; @end and my Car.m class file: #import "Car.h" @implementation Car @synthesize name, image; + (id)withName:(NSString *)name withImage:(UIImage *)image { Car *newCar ...

Why is my subclassed UIView not recieving touches moved when in a UIScrollView?

I have a Class called Boards and it is a subclass of UIView, I allocated an instance of that and put it into a UIScrollView, I want to instead of he touches going to the UIScrollView, but to the subview: Boards(UIView), I just don't know how to pass the touches from the UIScrollView to the UIView. P.S: I will be changing the contentOf...

error handling with NSURLConnection sendSynchronousRequest

how can i do better error handling with NSURLConnection sendSynchronousRequest? is there any way i can implement - (void)connection:(NSURLConnection *)aConn didFailWithError:(NSError *)error i have a nsoperation queue which is getting data in background thats why i have sync request. and if i have to implement async request then how c...

seperate a word into characters using string methods

Hello all, Trying to split what the user writes in the text field, into an array full of the characters in the things he typed. here is what I have so far -(IBAction) generateFlashNow:(id)sender{ [textField resignFirstResponder]; NSString *string1 = textField.text; NSString *string2 = [string1 stringByReplacingOccurrencesOfString:...

Getting Stack Error, Unexplained

I have this code -(IBAction) generateFlashNow:(id)sender{ [textField resignFirstResponder]; NSString *string1 = textField.text; //NSString *string2 = [string1 stringByReplacingOccurrencesOfString:@"" withString:@","]; NSArray *arrayOfLetters = [string1 componentsSeparatedByString:@","]; NSLog(@"Log Array :%@", arrayOfLetters); //NSAr...

Can your iphone app interact with the modem and still be accepted by apple?

I don't want my app to probe the nether parts of the iPhone... just use the modem to send a simple SMS message. Is this a deal-breaker with Apple? Why? I'm considering a workaround where outgoing SMS are routed to a URL I set up to bounce the message on to the intended recipient. Do you think this is a feasible route to consider? ...