iphone

uitableview delegate methods are not called

hi all i got the problem that the tableview methods are not called the first time the tableview is shown. if i switch back to the previous view and then click the button to show the tableview again, the methods are called this time. i've to say that i show an actionsheet while the tableview is loading. the actionsheet i call in the Vie...

How can I use a pre-populated core data DB on my device.

Hi all, I have developed my app using core data. It works fine in the simulator. When I deploy it to the device the DB is empty. It is 49k where it should be 484k. Basically it is not populated. Since I don't write to the DB when the app is running I need to provide a populated DB to the App. So I copied the populated DB from th...

Apple iPhone Developer Program

How long does it usually take for individual developers to be accepted into the developer program? I paid my pittance today and I'm feeling impatient. ...

Facebook event creation through iPhone app and Facebook Connect

How is this done? Is it even possible? All the function calls seem correct, but the result is always false: NSString *event = @"{\"name\":\"A party\",\"start_time\":\"1215929160\",\"end_time\":\"1215929160\",\"location\":\"Somewhere\"}"; NSDictionary *params = [NSDictionary dictionaryWithObject:event forKey:@"event_info"]; [[FBRequest ...

Iphone application that authenticates through ISA server 2006

Hi All, Just wondering if anyone can point me in the right direction. I have started creating an app the needs to be able to reach a webpage. problem is i have to authenticate through ISA server 2006. I tried using something like didReceiveAuthenticationChallenge but it does nothing. has anyone had experience with this before??? ...

Apple documentation incorrect about MKMapView -regionThatFits: ?

In the Apple documentation for the -regionThatFits: method of the MKMapView, it says that this will return a new region centered on the same point as the region that's passed in, only with the regions bounds corrected for the iPhone screen aspect ratio. This seems to be incorrect in implementation...before the call to this method, my re...

a "+" sign in email address

Hi. I need to submit an email address with a "+" sign and validate in on server. But server receives email like "[email protected]" as "aaa [email protected]". I send all data as POST request with following code NSURL* url = [NSURL URLWithString:[NSString stringWithFormat:@"%@%@", url, @"/signUp"]]; NSString *post = [NSString stringWithFo...

Tab bar controller in landscape mode

Hi to all All my app is in landscape mode .In some point I switch to a screen with Tab Bar Controller , but it's been placed like in portrait mode.I subclassed the UITabBarController and override the method "shouldAutorotateToInterfaceOrientation" to return YES always but because the app is already in landscape , this method is not being...

sqlite issue using WHERE statement on a varchar field in Objective-C

Hi, I have this sql statement SELECT * FROM Language WHERE LanguageCode=? where LanguageCode is a varchar(2). When I use sqlite3-prepare-v2 on that statement I got SQLITE_ERROR but if I use SELECT * FROM Language WHERE LanguageID=? where LanguageID is the primary key numeric identity field the statement compiles just fine. Is there an...

Are UIGestureRecognizer's coming to an the iPhone not just the iPad

I want to use the UIGestureRecognizer class inside the iPhone (not the iPad), is Apple going to come out with that some time soon? ...

Check if UIColor is dark or bright?

Hi, I need to determine whether a selected UIColor (picked by the user) is dark or bright, so I can change the color of a line of text that sits on top of that color, for better readability. Here's an example in Flash/Actionscript (with demo): http://theflashblog.com/?p=173 Any thoughts? Cheers, Andre UPDATE Thanks to everyone's su...

show action sheet, but not animated

Hi all How can I show an UIActionSheet without any animation, so that it just show up? Thanks in advance. Sean ...

iPhone view with vertical letter scroll bar (like Contacts/FB Friends view)

Any recommendations on what UIView to use on the iPhone to create a listed sorted alphabetically with a vertical scrollbar that has letter on it, similar to the Contacts application or Friends in the Facebook iPhone app? Either a three20 view or a stock UIView from UIKit will work... Thanks! ...

Accessing XML data online?

I am just testing an app to get data off our web server, previously I had been using: NSURL, NSURLRequest, NSURLConnection etc. to get the data that I wanted. But I have just noticed that if I swap to using XML I can simply do the following and pass the results to NSXMLParser: NSURL *url = [NSURL URLWithString:@"https://www.fuzzygoat....

How do I get an UIImageView to tell me when its animation stops?

I have a UIImageView that is displaying a series of pictures as an animation. This part of the project works well. I want to display a label when the animation ends. Is there an event that the Imageview will trigger when it's animation ends? ...

MonoTouch - has anyone used this?

Hi folks, I'm a .NET developer trying to make the leap into objective-c iPhone programming. I created my first app - just a simple portfolio with multiple xibs. I've just come across MonoTouch which lets you develop iPhone apps in C# or .NET. Has anyone tried this out? I'd be interested to know people opinions on it. Cheers, Jonesy ...

iPhone Graphic is distorted until a view is opened on top of it and dismissed

I have a scroll view within which I am creating a graphic with CGContext commands. When it is first displayed everything is slightly larger than should be and fuzzy. If I present another view on top of the graphic with presentModalViewController and dismiss it, the graphic corrects itself. Any suggestions? Thanks, John ...

Xcode iPhone Programming: Loading a jpg into a UIImageView from URL

My app has to load an image from a http server and displaying it into an UIImageView How can i do that?? I tried this: NSString *temp = [NSString alloc]; [temp stringwithString:@"http://192.168.1.2x0/pic/LC.jpg"] temp=[(NSString *)CFURLCreateStringByAddingPercentEscapes( nil, (CFStringRef)temp, NULL, ...

How to make same UIWebView take data from different local .html files?

I have an app, where there's one UIWebView and a UITableView. I don't want to create many .xib's, so I decided to make one .xib for all elements of the table. When user chooses a table element, the UIWebView appears and I want it to load data from different .html's depending on the name of the parent controller. The html's contain text a...

Address Book Groups - iPhone Simulator

Hi All, Is there a way to set up groups on the iPhone simulator? I want to set up a specific group on the iPhone and insert contacts into that group... I've presented the address book modally like in the tutorial but in trying to access groups, I've realised there's no option... Thanx Stef:-) ...