iphone

Anyone with a good tutorial for direct RSS embedding in an Xcode project?

Preferably a video tutorial, because all text ones I have seen (incl. from Apple) have not been specific enough. Basic navigation at the bottom, with 3 RSS feeds to keep it simple. I tried using Dashcode (the easy way) but that did not work either. ...

Split and Swap String in Objective C (iPhone)

Hi I have an array of strings separated with a delimeter ":". I tried separating strings using componentsSeparatedByString method and then save the result into an array and later use that array to produce the desired output, but it didn't worked. For example Now my UITableView displays cells as: Case 1: How:Many Too:Many Apple:Milk...

UIImagePickerController with Tab Bar Controller

I need to create a tab bar app with acess the camera in the third section of tab bar, but a try with [self.view insertSubview:overlay.view atIndex:1]; and doesn't work. They don't load the camera. How i do that? ...

I am creating iphone application. How to trigger an event when button click?

in xxx.h UIButton *b1, *b2, *b3; in xxx.m b1 = ---- similarly for b2 and b3 Now I want that on Click event I store the title in the string. How i can achieve it? In Other Words: What function/method would I have to implement in my View Controller class to handle a click event on a UIButton? ...

Is the Apple NSURLConnection Documentation Wrong?

// Create the request. NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.apple.com/"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0]; // create the connection with the request // and start loading the data NSURLConnection *theConnectio...

return title of web page i'm visiting in a UIWebView

Hi, I created programmatically a view that contains a navigation bar like Safari, a web view and a toolbar... In the navigation bar I put a label and two text field, one for type URL and one for type search. But how can I use the label to show the web view page title? I tried this code but don't work! :( nomeSito.text = [webView strin...

How to hide a UIButton title after onclick event.

When I click a button Its title should be hide. I do't want to set the title to empty string @"". So, How can i do this? ...

Add Multiple lines to detailTextLabel in iPhone

Hello, I'm using a UITableView with cell style of UITableViewCellStyleValue1. I'm want to have multiple lines in the detailTextLabel, is that possible? and how? Or do I have to make a custom cell. Any help is appreciated. Thanks, Mohsen ...

iPhone - Accessing MySql Server??

I am basically trying to retrieve some data from a MySql server, and display them on my iphone Let's say i have a table named "car" and i need to send 10 rows of my table to my iphone. 1- Is there any possible way to send an actual array of objects "cars" to my iphone. Or does it have to be a string. 2- If it has to be a string, what i...

CATransaction (still) Not Animating

Hi, I have a problem very similar to this one : http://stackoverflow.com/questions/805502/catransaction-not-animating I'm just trying to animate a view layer using CATransaction. My problem is that the transform is applied to the view immediatly. I tried to perform the animation using performSelector:withObject:afterDelay: without s...

Anybody know how to solve a "viewDidUnload undeclared" problem?

And also how to solve an "expected ';' before '{' token? code below (from xcode 3.2.3) - (void)viewDidUnload { self.cheatName = nil; self.description = nil; } Both errors are in the first line - (void)viewDidLoad { [super viewDidLoad]; [self.titleLabel setText:self.title]; [self.descriptionLabel setText:self.d...

Add repeating increment action to "buttons" at the ends of a jQuery slider. Needs to work on iPhone.

I have a web app that uses a lot of jQuery sliders. All are bound to input elements with the function below. This is working very nicely except on the iPhone. From what I've seen so far in discussions here and elsewhere there are no good solutions currently available to make the sliders work nicely. As a workaround, I want to bind a...

iphone - TabBarController rotation question

My app has 4 tabs. All the view controllers support rotation, and indeed are rotated when I rotate the device. For one of the view controllers, I need to reposition some of the subviews upon rotation. I do this in willRotateToInterfaceOrientation of that view controller, and it works fine. The problem comes when I switch to a different ...

Iphone SDK 4.0 -->> simulator just sits there and doesn't load the ap

Hi I have started learning iphone apps development. However when I build and run the project, the simulator opens with new app icon. When I click on the new app icon ...nothing happens. -->> simulator just sits there and doesn't load the app Any help will be appreciated. Marty ...

CLLocationManager - strange Memory Leak

Hi Forum I'm implementing a CLLocationManager right as described in several tutorials. Everything works fine up to the point where the LocationManager receives a second update. Then a memory leak occurs. Instruments tells me, that the leaked objects are NSCFTimer, GeneralBlock-16 and NSCFSet Any ideas? Thanks for any help [Edit] ...

Is there a Interface Builder-esque way to get that slick "pull down to refresh" menu I see on the Facebook iPhone app?

I've seen this in other apps too, so I'm wondering whether there's some canned functionality I'm missing. Is there an interface for the "pull down to refresh" action? If not, what's that called so I can Google it? ...

iOS4 ABNewPersonViewController Loses Data Entered when attempting to add a Photo iPhone 4

I have implemented a basic add contact feature to an iOS 4 application. Following the documentation from Apple, I have created a navigation controller, and set its root view to the ABNewPersonViewController. I have implemented the delegate as well. The basic mechanics all work. The problem I am having is when you add a photo to the n...

How to convert NSData to CGDataProviderRef on iphone sdk?

I am getting EXEC_BAD_ACCESS errors in a CGContextDrawImage call and trying to trace it back. I have a PNG image and running a UIImagePNGRepresentation o it gives me NSData instance. I need to convert this to CGImageRef instance, so I can run the CGImageCreateWithPNGDataProvider method with this CGImageRef. I tried two ways: 1) To cast...

How to tell when controller has resumed from background?

Hey guys, So I want to support app switching in my upcoming iPhone app and I've implemented all the proper delegate methods in my application delegate. So when the user resumes the application, I can see their activity in the NSLog and all. However, how can I tell my app has resumed a controller? Is there a method I can put in my contro...

iPhone bundle display and local notification title

Is the title for a notification (push or local) always the bundle display name? I have shortened the bundle display name, but would like the local notifications to display the full bundle name. ...