iphone

Find a "work" email address for a person in iPhone Address Book?

Is there a way to find a particular kind of email address for a person from the iPhone Address Book? I know how to get all of the email addresses for a person, just not how to identify what kind of e-mail address it is ("home", "work", etc.)...nor (and this might be preferable), a way to directly access that address without having to ite...

Extracting iPhone Exposure Setting

It seems that a similar question has been asked before, http://stackoverflow.com/questions/373357/obtaining-iphone-photo-exposure-information I wondering with the new iPhone camera, if there is any way to extract exposure data from the camera? it seems that it is able to sample different exposures based on where you focus, but I have yet...

iphone UITableViewCellStyleValue1 detailTextLabel overlapping textLabel

Hello, I'm using UITableViewCellStyleValue1 in my table and setting some text for both the textLabel and detailTextLabel. In one cell the detail text label is a long URL, which overlaps with the textLabel (normally "URL" and then shortened to "U."), which sucks. Is there a way to prevent this, except from creating my own label and putti...

Classes that mimic the behavior of iPhone Application Settings...but within an app?

Has anyone written iPhone classes that mimic the behavior of the Application Settings? It would be nice to be able to define settings tables for use within my app using exactly the same XML structure, etc. ...

Image processing on the iPhone

I would like to apply image processing on pictures taken on the iPhone. This processing would involve 2D matrix convolutions etc. I'm afraid that the performance with nested NSArrays would be pretty bad. What is the right way to manipulate pixel based images? Should I simply use C arrays allocated with malloc? ...

Problem to destroy or tweet (inReplyTo) with the MGTwitterEngine- Can´t pass the right NSNumber to the methods

Hi, I hope I don´t annoy you and you don´t have to answer this, but here is a little bit more explanation of my problem. I got all of the ids of the tweets with a NSArray. Then I set a NSNumber with: NSNumber =[NSArray objectAtIndex:indexPath.row]; to get the right id of the tweet in the TableView row. Now I just wrote this: unsig...

Regex of this <a href=\"-----------------\"> iPhone NSString

Hello Every one. I want to use regex for the following expression. here mail id can be any thing. but I just want to cut this string. I was trying following code. NSString *email=@"<a href=\"mailto:[email protected]\">"; NSString *strEmailMatchstring= @"\\b([a-zA-Z0-9%_.+\\-]+)@([a-zA-Z0-9.\\-]+?\\.[a-zA-Z]{2,6})\\b"; if(![...

iPhone: MKMapView zooming out and back in causes the maps region.center to drift

I have a simple iphone app that uses the MKMapView. It has a segmented control that will adjust the region to zoom (street, neighborhood, city, state, world). It works OK but if I zoom out to state level and back to street, I notice that the center point has shifted. The following are two delegate methods that get called before and ...

Storing HTML in a Core Data app

As a follow up to this previous question, I have a Core Data-based iPhone app that gets its underlying SQLite database file pre-loaded by a small utility, written in Cocoa, which I also wrote. Basically, I'm taking data from text files and building my data off-line, so the app is as fast as possible when it runs (i.e. no data parsing on ...

Loading .xib's into a UIView

Hi, I have a UIViewController with its own .xib, and I want to use a UISegmentedControl to display different information on the bottom half of the screen. I created a UIView in the container's .xib and connected it to a UIView property called detailView in the container's UIViewController. I then created three .xib files in IB, one fo...

iphone sdk: pausing NSURLConnection?

Hi guys, In my app I give the user the ability to download files from a server. For that I use NSURLConnection. I would like to give the user the ability to pause and resume the download by tapping a button. I couldn't find any way to do this besides calling the cancel method and then creating a new NSURLConnection. So is there an elega...

Can´t get the unsigned long value of a NSNumber

Hello, I want to get the unsigned long value of a NSNumber. I don´t know why, but it doesn't work. Here is what I did: NSString * stern = [idd objectAtIndex:indexPath.row]; // get a String with Number from a NSArray NSNumberFormatter * lols = [[NSNumberFormatter alloc] init]; NSNumber * iddd = [lols numberFromString:stern]; NSLog(@"%@",...

UIView & Graphics Context

The UIView class does not set a graphics context, so when I go to get the current context, it comes back as nil. I'm in a method subclassed off of UIView, how may I get the graphics context to be able to simply draw a line? Very new at the x-code game. Any help would be appreciated. ...

Question regarding iphone allowance of custom notifications

I have an app that I am working on, and part of its main functionality is to alert the user to do something. So even though they aren't in the app, I want to be able to pop up an alert from the app, reminding them to do something. Is that allowed with the iPhone sdk? Maybe it isn't even a big deal at all, but for some reason I was thinki...

How can I programatically set a TableView to be grouped

I am trying to set up my TableView dynamically froma configuration file and have been trying to override the following template code - (id)initWithStyle:(UITableViewStyle)style { // Override initWithStyle: if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad. Jea...

Question regarding core data and the camera.

So I am working on an app that uses core data to store attributes of objects that the user can set. I have primarily been focusing on the first part, which was setting everything up on the core data side, and now I am ready to move on to the next part which deals with the camera. I want to be able to add a city, or other geographical loc...

UITextView highlightedTextColor or similar option?

I have a custom UITableViewCell with a UILabel and a UITextView in it. I want the text for both of these to appear white when the user highlights the UITableViewCell. It's obviously very simple to set the highlightedTextColor of the UILabel, but the UITextView doesn't seem to have any similar type of property. Am I going to have to man...

how to retrieve friends' list using facebook connect with iphone app

Hi, I'm using facebook connect for my iphone app. It is able to authenticate the user and also publish a comment on the user's wall. But I'm not sure how to retrieve the user's friends list. A sample code will be highly appreciated. Thanks in advance, -Chandni ...

can a UIImageView be warped? (iPhone)

I'm curious if it'd be possible to warp a UIImageView on the iPhone. I was thinking of stretching an image around a curve. Possible or no? ...

Where does UIApplication's handleOpenURL 'Return' to exactly?

I'm working on a handling a custom URL Scheme in an app and am trying to sort out: - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url I'm passing and successfully parsing a URL into an NSDictionary in my app but wondering "what now?" handleOpenURL returns a BOOL but to what? It's hard for me to debug as I hav...