iphone

How to rotate image in the speedometer?

I am using this code for rotate animation: CABasicAnimation *spinAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"]; spinAnimation.fromValue =[NSNumber numberWithFloat:0]; spinAnimation.toValue = [NSNumber numberWithFloat:3.30]; spinAnimation.duration =2; [imgArrow.layer addA...

iPhone programming: avaudioplayer leaks memory on play

I'm new to using avadioplayer and I seems to have a memory when ever I play a sound. I cannot figure out what I am missing to get rid of it inside Instrument. could this be a false positive? ViewController.h : @interface ISpectatorViewController : UIViewController <UIAccelerometerDelegate>{ AVAudioPlayer *massCheerSoundID; } @proper...

Automatic checking of iTunes store

Hi, I have got a couple of applications on the app store and I am checking daily all available countries to check out if someone left a review on my application and at what place it is in the top-paid rating. It became really boring to spend time watching over iTunes. But the information I get is very helpful. Is there a way to automa...

vtable problem with cppunit and xcode project

...

How to stop NStimer event?

In my application i am using NStimer and animation function is call every 3 second.During this timer i want to stop this timer and called another event.How it possible? ...

Need way to view an album of pictures on iPhone

I don't need to take pictures or access the iPhone photo album. I simply need to display a bunch of pictures in thumbnail form and then let the user view the larger version when tapped. Would I use an uiimagepickercontroller or another controller? If so does anyone have an example of how I load in the pictures to view? ...

How do I import data from Microsoft Access / SQL Server 2005 into Core Data?

I am sitting on a ton of data in a SQL Server 2005 database, from which we dump Access databases as a cache. I want to create an iPhone app based on Core Data that can use this data from my SQL Server 2005 database, or the Access dump. Based on all of the Core Data tutorials and documentation it appears that I have to use Xcode to crea...

[iPhone] Hiding/Showing Status Bar

I'm developing an iPhone app that switches from a table view to a landscape fullscreen view (similar to the YouTube app). When it does so, I want to hide the status bar, then display it again when switching back to the table view. I'm using setStatusBarHidden but that just seems to hide the status bar wihout enlarging the screen area; th...

Can I programmatically flip Info.plist values while my application is running?

I am interested in using the SBUsesNetwork and UIRequiresPersistentWiFi keys in my application; however, I would like to enable them only when using a certain set of view controllers. Is there a way to programmatically flip those key values while the application is running? ...

CoreData and mergeChangesFromContextDidSaveNotification

I'm creating a addingManagedObjectContext as a scratch pad area for new entities and then merge the new entity into my main ManagedObjectContext on 'Save', similar to how it's shown in CoreDataBooks Example. After you merge your new entity, how do you get a quick reference to it for use in displaying a detail view? Do you have to make...

Is this a zoom bug in UIScrollView?

In a class that conforms to UIApplicationDelegate and UIScrollViewDelegate I did the following in : - (void)applicationDidFinishLaunching:(UIApplication *)application { // Created an instance of UIScrollView to house a horizontal strip - along the x-axis - of kNumberOfPages UIViews: scrollView = [[UIScrollView alloc] initWithFram...

iPhone to Mac Sync Over Wi-Fi

Hi All, I am writing an iPhone application and would like to sync data over Wi-Fi between the iPhone and a complementary Mac application which I will also be writing (much like what is accomplished with Things and 1Password). To provide specific context, I need to be able to upload a CSV file to the iPhone application, have the ability ...

iPhone - UIImage Leak, ObjectAlloc Building

Alright I am having a world of difficulty tracking down this memory leak. When running this script I do not see any memory leaking, but my objectalloc is climbing. Instruments points to CGBitmapContextCreateImage > create_bitmap_data_provider > malloc, this takes up 60% of my objectalloc. This code is called several times with a NSTimer...

Objective-C/iPhone: Windows' view not responding to button clicks!!!

So in my app delegate I add a call add the myViewController.view to the main window: 1. [window addSubview:myViewController.view]; In myViewController I do the following code in the viewDidAppear method: 2. [self presentModalViewController: yourViewController animated: YES]; In my yourViewController class I do the following to try a...

uitableview subview : why this uilabel is not visible?

I want to display a label showing a number in each cell of the tableview but the label is only visible when I click on a row (when the cell is highlited) - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UILabel *label; UITableV...

Basic 2D Texture Howto for iPhone OpenGL ES

Hi guys Just started learning OpenGL and couldn't find a decent tutorial to get me going. Specifically, I'm looking for something that will show me how to load an image to an OpenGL texture, store it in a variable to display later, and then draw the image. I'd appreciate it if someone could write out the basic code to do that for me. I...

Hiding UITableView separator behind the contentView

I made a grouped UITableView in iPhone OS 3.0 that looked like the left image. The result is the right image in OS 3.1. (I'm new so I can't use the 'img' tag...) http://i283.photobucket.com/albums/kk295/gcampagna/Capturedcran2009-09-15205242-1.png The imageView is under the separators. I've tried to put the content view in front. The ...

iphone - IUWebView javascript scrollIntoView()

I have a simple UIWebView with simple HTML. At the end I place a javascript function: <script language='javascript' type='text/javascript'> var x = document.getElementById('SEARCHRESULT'); if (x != null) x.scrollIntoView(true);} </script> To force the view to scroll to a region. It doesn't seem to work. Does the UIWebView not support...

AVAudioPlayer works once

Trying to create a playlist of music files that are NOT part of the user's iphone library so I'm using AVAudioPlayer and creating the playlist functionality myself. It works on the first pass (meaning the first song is played). When the first song finishes and it goes to play the 2nd AVAudioPlayer crashes in prepareToPlay. - (void) cr...

UINavigationBar Bottom Separator Line Color

Hi there, How can I change the line's color that separates the navigation bar and the view? For instance flickr changed it to gray (http://www.geardiary.com/wp-content/uploads/2009/09/Screen-shot-2009-09-08-at-8.00.06-AM.png) By default mine is always black... Thanks in advance for your help, nico ...