iphone-sdk-3.0

UIToolBar Item disapperars

Hey, I made a NavigationBased App ... and I want to add an Item to the toolbar of a Subview. When I click on the Cell of my TableView, the next View is pushed in and my "About" Button shows up for about 1/10 second, then it disapperars. I tried: UIBarButtonItem *infoItem = [[UIBarButtonItem alloc] initWithTitle:@"About" style:UIBarButt...

Freaky UISwitch/UILabel.hidden/UIImageView.hidden Problem!

Hi Everyone! Sorry for the constant questions, but in my app, you are able to toggle if 3 UILabels and 1 UIImageview's hidden property is YES or NO via UISwitchs on another page (The settings page). The weird part is, one of the UILabels is hidden, even when it is declared that it is not to be hidden. Here is my code on the settings p...

is it possible to custom commitEditingStyle?

Hello iPhone gurus, Quick question here. I'm implementing a UITableView with cells, some of the cells contain links. I would like to use something like the commitEditingStyle so when a user swipe a specific row, it will show a custom message instead of Delete or Insert, i want it to be Mail so i'll be able to mail a link to someone. I...

IPHONE - fade in and fade out of a UIImageView with different times

Hi, I would like to do a fade in and out of a UIImageView using different times, let's say, using the following parameters: t = 0 ... UIImageView's alpha = 0 t = 0.5s ... UIImageView's alpha = 0.7 t = 0.7s ... UIImageView's alpha = 0 Is this possible to do with CAAnimation or other method? How can that be done? thanks for any...

iPhone multitouch event can't get

Hello guys! What do you think, what is the problem with my simulator or I don't know, with my code. Here is the code - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { if ([touches count] == 1) { // code } else { // code } } And when I simulate the double tap with the Option key in simulator, the code al...

UISegmentedControl makes UITableView slow/lag?

So I have a nicely working UITableView consisting of 3 rows (each including and image, and a varying number of text fields). Now the 4th row has a UISegmentedControl. As soon as I added it, the UITableView lags/jumps/skips. When I take it away again, everything is smooth. How can I add the UISegmentedControl and still have smooth scrol...

How to move jigsaw puzzle pieces joined together in a view

I am doing an jigsaw puzzle game. I need a help in joining the images when they are in their correct position and move together anywhere in the view. How can we attain that ? please help....... ...

Core Data VS SQL Statement, which one is gd for iphone development?

iPhone 3.0 support the Core Data, it seems a great tool for developer. But SQL statement seems it is easier to get start, but core data is easier for maintaining db. But I'm considering the SQL statement, because it seems have better performance. I am consider which one is better for iPhone development, any suggestion? ...

iPhone - is it IMPOSSIBLE to grab the contents of a CALayers composition?

I have a CALayer transformed in 3D on a offscreen UIView (much larger than 320x480). How do I dump what is seen on this UIView to a UIImage? NOTE: I Have edited the question to include this code... This is how I create the layer... CGRect area = CGRectMake (0,0,400,600]; vista3D = [[UIView alloc] initWithFrame:area ]; [self.view add...

iphone sdk , apostrophe showing up as question mark

The quotation marks (apostrophe to be more specific) single and double are displaying as question mark on my text view. The problem come up when I try to copy and paste some thing from a webpage and save it. This problem does not happen when I type the sentence. How can I replace a apostrophe with a regular single quote? ...

iPhone Keyboard hiding fields in UIWebView

Hi, I am a beginner at iPhone development and am hoping someone can help me with my question. I have a UIWebView displaying a web page. If the user taps inside a textbox on the web page then the keyboard pops up. This is great, but it hides the field that the user tapped on. I have looked around and found code samples to deal with this...

is it possible to draw uiview over quicktime player?

is it possible? any idea ...

iPhoneHttpServer fails to start, after restarting multiple times.

Hi all, I am facing the same issue regarding restarting the server multiple times. ( on: http://code.google.com/p/cocoahttpserver/issues/detail?id=8&can=1 ) I am doing it in the viewWillAppear and stop the server in viewWillDisappear, then I also release the httpServer object. The problem is when I do this multiple times the serve...

Iphone - how to pass a parameter to animationDidStop?

I have this method... - (void) helloThere: (int) myValue { // I am trying to pass myValue to animationDidStop [UIView beginAnimations:nil context:[NSNumber numberWithInt: myValue]]; [UIView setAnimationDuration:1.0]; [UIView setAnimationDidStopSelector:@selector(animationDidStop:finished:context:)]; [UIView setAnimationDelega...

Objetive-c async http request

I want to create an async http request. Where to start? Can you give me some good links to start this? I want to learn it. ...

How to Draw some sample images on the iPhone?

I just want draw some simples circle on the iPhone, I think it is too complex to using openGL doing this sample job, but I find that the UIB don't have something like canvas, any suggestion on drawing sample images on iPhone? thx a lot. ...

iPhone - Interface Orientation reversed?

Hi I have this piece of code... - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; } and - (void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if(UIInterfaceOrientationIsPortrait(interfaceOrientation)){ // WTF, this runs when I chang...

How to Notify View Controller that a Property of an Object has Changed

Hello all, I have a view controller which gets an NSObject conforming to a protocol and then displays a view with the object's properties. The question : How can my controller know that a property of this object has been modified and then refresh the view ? Thanks a lot Thierry ...

iPhone & Ipad - how do I fork a code?

My question is this: I have an application designed for iPhone and I decided to fork the code, in other words, I will develop two versions of the application at this initial phase, one for iPhone and the other for iPad. My question is this: how do I fork the code? I would like to continue using one project for both versions but, obvious...

How do I draw repeatedly (over time) into the same UIImage? (Or whatever backing store I need to make?)

I'm about at my wit's end over this issue, due to hitting a good dozen other website (as well as this one) looking for a straight-forward answer to my problem... First off, I'm trying to figure out a way, given a starting image created via [UIImage imageNamed:] to add decorations based on processing over time. (Think of a heat map.) I...