iphone

Why does not multitasking auriotouch sample code?

Hi 1. I want to play background this samplcode app. But auriotouch isn't multitasking in iphone. So I tried to find materials. However i didn't try to find materials. I want to know how multitasking code. 2. I tested auriotouch sample code in iphone device. However After this app play,click a home button and other app played. A...

Improving drawing performance on custom UIView

I have a custom UIView which is composed of many images, their positions are changing in response to the user touch. The view must track the user touch and i'm experiencing a performance bottleneck in the drawing of such view, preventing me to follow the input in realtime. At the beginning i was drawing everything in the [UIView drawRec...

Need help fixing iPhone memory leaks!

I encountered some strange memory leaks executing following code on iPhone device: @implementation TestViewController @synthesize myButton; - (IBAction)buttonPressed { ABPeoplePickerNavigationController* selectContactViewController = nil; selectContactViewController = [[ABPeoplePickerNavigationController alloc] init]; sel...

NSCompoundPredicate fails to match

I'm building a NSPredicate using the code below for an iPhone app. The logging shows the prediate to be: location CONTAINS "head" AND shape CONTAINS "oval" AND texture CONTAINS "bumpy" AND colour CONTAINS "red" I get no results. If I limit the predicate to a single item it will work, more than 1 fails. Can anyone tell me why? Many tha...

Refresh Value in NSMutableDictionary using ViewWillAppear

Folks, See this code: int i = years; NSLog(@"Years i: %i",i); NSString *syears= [NSString stringWithFormat:@"%d",i]; menuList = [[NSMutableArray alloc] init]; [menuList addObject:[NSMutableDictionary dictionaryWithObjectsAndKeys: @"years", kLeftKey, syears, kRightKey, nil, kControllerKey, nil]]; Th...

Retina icons (@2x) aren't being used when images are specified in code

I place a play.png image onto my view. When the view initially loads, the iPhone 4 grabs the corresponding [email protected] file and it looks great. However, when I tap the play button my code swaps it out for the pause.png file. Then, when I tap the pause.png to bring back the play.png it uses the original play.png file (not the @2x version ...

Why is this CATiledLayer/PDF code slow?

Here is the code: http://dl.dropbox.com/u/5391413/PDFScroller.zip I took the WWDC 2010 PhotoScroller sample code that implements nested UIScrollViews for zooming, inside a UIScrollView for paging, and swapped out what I thought would be minimal amount of code required for displaying a multi-page PDF instead of images. It works. But it...

What iPhone OS should I test before submitting to app store?

I am currently in the final stages of testing my app before submitting to app store. Testing my app means testing for memory leaks, tuning performance and fixing undesired behaviors. Are there any guidelines of which iPhone OS should I test all the above? Latest OS is obvious but should I test perior OSs? ...

Using UIWebView links to call a function?

I'm using a UIWebView to display formatted text from local HTML. Is it possible to have specific links in the HTML call Obj-C functions? For example, clicking a link to have a new view appear? Or am I resigned to using Javascript? ...

What's a good way to manage the Local Notifications your app has scheduled?

Hello. I'm diving into iOS development and have been working on an alarm clock app to become familiar with iOS platform and SDK. I'm using Local Notifications to handle my alarms, but I need some method of managing the Local Notifications I set so that they can be updated if I edit or remove any of the alarms associated with them. I f...

another question about line break in UILabel

Hi everyone, I'm struggling with line break in UILabel. I'm generating xml in vb.net and then parse it in iPhone application. xml contains text which initially contains html tags such as , so I can and need to replace these tags with something to add a linebreak in iphone How can I do it? I tried \n , \n\r, they a not working Any help ...

OpenGL ES: Rotating 3d model around itself

Hi, I'm playing with OpenGL ES on iPhone and I'm trying to rotate a model by panning with the finger. I discovered the open source app Molecules that let's you do that and I'm looking at that code, but when it comes to rotate a model of mine I'm able to rotate it only around a point distant in the space (like it was in orbit as a satelli...

Enabling zooming in UITableView

Hello, So I'm trying to enable zooming in UITableView so you make the cells bigger. I know UITableView is a subclass of UIScrollView. So I went to the interface builder and changed minimum zoom to .75, max to 4.0, paging enabled, bounce scroll enabled. However, it is not zooming. Any thoughts? Thanks ...

UIImagePickerControllerDelegate Issues...

Mysterious (at least to me) issue. Here's what I'm doing - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *neoImage = [[info objectForKey:UIImagePickerControllerEditedImage] retain]; NSLog(@"neoImage: %@", neoImage); [self.images addObject:neoImage]...

LinkedIn SDK for objective-c (iphone)

Hello, I want to make an iphone app that can update statues and share linkes on linkedin any one can help me please thanx ...

Property List management

I am trying to create an app that has a list of users and each user will be assigned an array of data that is editable. I am new to persistent data so i thought a property list would be the easiest to use. The first view of the app will have a list of the users that have already edited at least their name, and then have "New User" for ...

Connecting extremely basic objective-c program to iPhone application

I was wondering if it is feasible for me to connect this simple console program I have in objective-c into a very simple iPhone application. Since I have no experience using Interface Builder, I'm not sure how long it would take for me to learn it. Also, I believe my code would have to be adjusted to some iPhone APIs, rather than using...

How do I get a user's email address (with permission) on iPhone?

Typing on iPhone is tedious; I'd like to prompt my users for their email address without requiring them to actually type it. Ideally they'd receive a dialog saying: "This app would like to use your email address. Don't Allow / Allow" If the user tapped "Allow," it would auto-fill their email address (the one they have configured in Ma...

Can you use Google's geocoding service in a commercial iPhone application?

Is it legal to charge for an iPhone app, lets say .99 cents, for an app that uses Apple's mapkit and a request to google to use their geocoding service? The geocoding is not the main part of the app and it is not advertised to be a geocoding app. Is it ok to do this? Someone mentioned that google has an iphone terms of service, but I c...

Can an iPad app directly launch another app?

Hello, I was wondering if it was possible to launch an iPad app directly from within another app. For example, could I write a login page that takes you too a desktop type page where you can select an app to run, and then launch that app as say, a new thread? I am not sure this is possible, I am just curious about the capabilities of ...