iphone

How to create UIImageView with image from a link?

How to create UIImageView with image from a link like this http://img.abc.com/noPhoto4530.gif? Anybody can help me? :( ...

NSUrl bookmark data

what part of NSUrl has the bookmark query? eg: mypage.htm#part1 how can i get #part1? ...

How do I persist CLLocation between app launches?

Hi there, I want to persist 2 CLLocations between app launches. This is the ONLY data I want stored in memory between launches. How do I go about doing this? Does CLLocation have a writetofile or store it in coredata or NSUserDefaults? I want to store the whole CLLocation object, don't want to store only lat/lon and then do more calculat...

Question regarding moving CCCamera.

I am having trouble finding a tutorial on CCCamera. And have even heard from others there is no CCCamera tutorial. But, to the point, the thing that I really want to know is simply: How do I move the coordinates of the cammera? I tried this after looking at the reference: CCCamera *myCam = [[CCCamera alloc] init]; [myCam setCenterX:...

What are good techniques for high performance full screen bit-blitting on iOS?

Assume I want to program a Star Field animation. Not by using OpenGL but by drawing directly to the screen buffer or to off-screen buffers that can be placed on screen. That Star Field demo running on the TRS-80 is of course just an example. Think video decoding or full-screen animations as other possibilities where rates of 20+ frames ...

How do I hook up a UIViewController to a TabBarController?

How do I hook up my viewcontroller to the TabBarController? Is there something I need to do in IB? I am just using the generic tabbar template from xcode and I can see where you can make new view controllers inside of the Main.xib file in inspector but I don't know how to hook up my custom view controller to a tab in the controller. Plea...

how to display multiple images dynamiclly in imageview

hi i am new to iphone. what i need is i have to display only one image in one case, two images in another case like wise and for that i am using a imageview with iboutlet. how can i dispay multiple images in single imageview. pls help me post some code. thank u . ...

One finger momentum scrolling in iOS in overflowing div

I have a webpage with two side by side overflowing divs that split the screen, similar to gmail the iPad. This works fine on desktop versions of WebKit, but is basically broken on iPhone / iPad because scrolling requires two fingers and lacks any momentum. What is the best way to implement two scrolling areas for the iPad, similar to g...

iphone : SDK disclosure button not response from first TableView to second detail TableView ?

How can I pass the first tableview row data to second detail view row I use [cell setAccessoryType:UITableViewCellAccessoryDetailDisclosureButton]; or cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; to show up disclosure button in each cells it can ,I also add actions in - (void)tableView:(UITableView *)tableV...

How do I limit a user to listening to only 3 songs before logging in?

I have the music player application in which I have 90 songs total. I would like for the user to be able to listen to three of these without logging in, then require them to log in to listen to any others. How would you suggest I implement this? ...

UIBackgroundModes key not showing in Info.plist dropdown

I am trying to upgrade an older iPhone project to adopt background audio streaming, however the "Required background modes" key is not showing up in the Info.plist drop-down menu. I have set the base SDK to 4.0. Is there another project setting that governs which Info.plist keys are available? Kind regards, Rob ...

A Simple Objective C xcode Memory Management Question

In the code below, will tapsLable.text be deallocated when tapsMessage is released or does the assignment operator somehow increment the retain count so that tapsLabel.text continues to be available? NSString *tapsMessage = [[NSString alloc] initWithFormat:@"%d taps detected", numTaps]; tapsLabel.text = tapsMessage; // tapsLabel is a UI...

UIView Subview Does not autoresize on orientation change

In my iPhone app, I have a view controller with two views (essentially, a front & back view). The front view is the main UIView, and the back view is a secondary UIView which is added as a subview using [self.view addSubview:backView] when showing the back and [backView removeFromSuperview] when hiding it. However, when the orientation c...

Problem with NSTimer

Edit2: Why only progress got updated in "doSomething" method but not point0? Edit: with the code I have. I know I must overlook something, but I just could not find it. I am writing an iphone app which uses NSTimer to do some tasks. In the program, I could not get the updated value of the variable updated inside NSTimer loop. Here is m...

Dialing a number

I read some reference about how to make a call programmatically on the iPhone, so I put this in my code : UIApplication *app = [UIApplication sharedApplication]; NSString *urlString = [NSString stringWithFormat:@"tel:0225225657"]; NSURL *url = [NSURL URLWithString:urlString]; [app openURL:url]; is that correct? If yes, how can I know ...

Can't find my iPhone app in search results

The app status is Ready for Sale and there is a working direct link to it in iTunes. However the search either with keywords or by the app name from the iTunes top left corner does not bring any result. It is listed in website when I manually browse to category. The search however bring result on iPhone device App Store app. Just curio...

how to overlay an image in iphone application?

I want to overlay an image over a button. the button has a background image. If i want to overlay a semi transparent image over the button, suppose i overlay a red color image, which is semi transparent. Can any one suggest how to do that? Suggest some documentation. ...

How to change the background color of a table view cell after it was moved?

Hello, guys. I have a table view with 9 rows at minimum. The background colors of the cells will depend of the cell position. If it is bellow to 3 or below to 6 or below to 9, the background color changes (see the next image). The problem is that this table view can be reordered and I have to maintain the same color pattern. Example:...

how to convert int to NSTimeInteravl in Objective-C?

Hello, Please do tel me how to convert int to NSTimeInterval? Thank You. ...

how to install iPhone sdk 3 and iPhone sdk 4 on same mac

Hi I need to install iPhone sdk 3 and iPhone sdk 4 on same mac, for testing purposes because some of my iPhone sdk 3 project are not working on iPhone sdk 4. Thanks Saurabh ...