iphone

Synchronous NSURLConnection Threading on iPhone

I started out using asynchronism but to get the returned data became a hassle. I then began using class methods which, I believe, ruled out the possibility of using the delegate methods. So I kept with the synchronous, knowing that this would be an issue but didn't think I would have this much difficulty with a solution. What is the best...

Controls in Skype Chat Window , IPhone message app

I am creating a chat window similar to Skype Chat Window or the IPhone Message App chat windown What kind of UI controls are best for such purpose? I am using TableViewController to manage this now. Each TableViewCell displays messages either received or sent. But I have problem of finding the right place to put a UITextField. I put it ...

Problem adding subviews (UIButtons) to subclass of UIImageView

I'm adding a custom button/keypad to my application. Thus far, I have a UIImageView subclass that contains an animation that slides it from the bottom of the screen, and then back down when the user no longer needs it. I'm having trouble adding UIButtons to this UIImageView, however. Since this is a subclass of UIView, I'm attemptin...

Several UIImageViews in UIScrollView and crashes

I have a problem with a photo viewing application I've written. I have a UITabBarController with a UINavigationController inside. The UINavigationController initially displays a UITableView. On selection it pushes another UIViewController (Individual photo album) along with an NSArray of photos. This Controller contains a UIScrollVie...

[iPhone Obj-C] How to create "otherButtonTitles"?

I have the AlertView working perfectly with a "cancelButtonTitle:@"Cancel"" and "otherButtonTitles:nil". My question is how to get other buttons. When I only change the "otherButtonTitles:@"2nd Button"", then the iPhone simulator just crashes out of the app and into the homescreen. ...

How do you use glFrustrum in OpenGL ES1 on iPhone

So I am using Xcode 3.2.1 and am trying to make an iPhone OpenGL ES1 project. The default template for an opengl project is ok, but I have been trying to split the code up so not everything is done per frame on the drawView() call. I have a seperate setupRC method that sets the lighting, turns on depth test, turns on culling and sets t...

iPhone Google Data API HTTP Protocol, Auth Token from string

Google Docs returns a long 3 line string when supplied with credentials. This is the format SID=stuff... LSID=stuff... Auth=long authorization token if I have it stored in NSString, what is the best function to trim all the way up to the "=" behind Auth, and keep the rest? NSData *returnedData = [NSURLConnection sendSynchr...

[iPhone,Obj-C] something:something:something Method Format?

-(void) alertView: ( UIAlertView *) alertView clickedButtonAtIndex: ( NSInteger ) buttonIndex { // do stuff // if you want the alert to close, just call [ alertView release ] } Can someone explain this method? I'm used to methods that are like "-(IBAction)buttonPress:(id)sender" but this one has three. What do ...

Overlay View Problem When Playing Two Different Movies in Sequence

I'm trying to play two videos using the MPMoviePlayerController class and allow the user to switch between the two videos by swiping their finger across the screen. Everything works great for the first movie. The overlay view correctly detects the swipe and starts the next movie playing. Unfortunately things don't work so well with th...

iPhone: How do I add layers to UIView's root layer to display an image with the content property?

According to the Mac Dev Center docs, you should be able to set the contents property of a CALayer and have that render automatically. However, I still can't get a simple image to show up by adding a sublayer to the UIView's root later. I've tried multiple different variations; here's what I have so far: (Note: I know there are other wa...

Syncing between Mac OS X and iPhone

Is there any progress made in this area since this post in 2008? http://stackoverflow.com/questions/185673/how-do-i-sync-application-data-between-an-iphone-and-another-computer ...

transparent subview over UIimageView

as i am a new in iphone world ,i need some startup help to achieve this kind of design? background of view which has button should be transparent so that user can see product image in back. http://www.freeimagehosting.net/uploads/cb58b72480.jpg let me know if it requires more explanation? thanks. ...

When does webViewDidFinishLoad get fired?

Does anyone have a precise understanding of when webViewDidFinishLoad is called on a UIWebViewDelegate? I've read that it fires once per iframe, if they exist, but I'm concerned about exactly when it loads with respect to the DOM and javascript events. Is all of the javascript and DOM guaranteed to be downloaded, interpreted and ready ...

Save photo to iphone camera roll with a custom name

Hi Guys, I am trying to save a photo taken from my app to camera roll, this can be done by using UIImageWriteToSavedPhotosAlbum, however, I noticed there isn't any way to set the photo name by using this approach, am I right? I also tried to save a image file with a name by using UIImageJPEGRepresentation, however, I can only save it t...

xcode iphone program using .cpp file: symbol not found

This had been driving me crazy.... I have an iPhone app that is using an Apple sample cpp file. The cpp file is aqofflinerender.cpp. When I compile the Apple sample project, AQOfflineRenderTest, it compiles correctly. When I copy the aqofflinerender.cpp file to my project and reference a method within the file exactly as the Apple ...

Write an Objective-C method, and a c function, when writing for the iPhone?

When using XCode for writing for the iphone SDK... like a simple function that accepts a text-string URL and visits the website, and returns the HTML... which is better? Use Objective-C and write a "method" that accepts an NSString and returns an NSString. or Use C and write a "function" that accepts a string and returns a string. Ho...

How do I go about tackle optimizing my application for the iPhone

I am making a drawing application and I want make my code more readable and more efficient in the sense that I want the code to end up being faster and more responsive and lightweight. If you could lead this noob in the right direction then that would be wonderful. ...

How do I make my own custom UIColor's other than the preset ones?

I want to make my own RGB colors that are UIColors and that I could use just like UIColor blackColor or any other. ...

Opinion on UI of iPhone/iPod touch Theme builder

I am developing an iPhone/iPod touch theme builder on Windows/Mac/Linux. I am asking you, the people of StackOverflow, on how the UI should be designed. I was thinking a PictureBox on the left which pictures can be dragged into and resized automatically. Then on the top right, a TreeView with folders and files like: UISounds, UIImages, B...

Is programming for Android completely different fron programming for iPhone?

I have made apps for the iPhone, but want to also code for the Android but want to know if it is first worth my time, second worth my having to learn another language, and third worth the effort in the sense that am I going to make a profit from this. Also if in any way Android code is similar, then will it be hard to bring the iPhone (X...