iphone

Memory issues with NSUserDefaults

I have spent hours trying to get my project working and I just can't get it working. Basically, I'm trying to use NSUserDefaults to save a custom object when the user hits a save button and load all the data up when the app loads. If there is no previous NSUserDefault saved, I want to set some defaults. In the end, I am getting EXC_BA...

Animating large sprites with cocos2d (ccspritesheet)

I'm working on an iPhone game using Cocos2d where the main character is approximately 194x114. the animation consists of 100+ frames making my spritesheets larger than the 1024x1024 limit. The obvious solution would be to separate the animation to several files and swapping spritesheets when necessary. while doable (i guess) i'm not qui...

Inverting UIBarButtonItem "Play" for use as a Back Button?

Okay, simple enough. I'm coding up a simple web view, and I'm providing a few Safari-like controls for navigation. Play seems to be the obvious choice for the forward button, but I'd like to have a Back Button as well, as seen in several Apple and third party apps. Is there a way to invert the icon, so that it points backwards, or are...

FQL Album not Working in Iphone (FBConnect)

Hi guys, NSString *fql = [NSString stringWithFormat:@"SELECT cover_pid, name FROM album WHERE owner =%lld", self.usersession.uid]; NSDictionary *params = [NSDictionary dictionaryWithObject:fql forKey:@"query"]; NSLog(@"--FBRequest-- %@",fql); [[FBRequest requestWithDelegate:self] call:@"facebook.fql.query" params:params]...

"_KUTTypeMovie_" Referenced from: Error in xcode

Hey guys I'm trying to create an app in xcode that in long story short records video, and xcode is proclaiming the following: "KUTTypeMovie Referenced from:" Any help would be awesome, thanks! Here is my code. #import < MobileCoreServices/UTCoreTypes.h> @implementation OverlayViewController (void) viewDidAppear:(BOOL)animated { Ove...

Example iphone audio streaming app

Is there an example application (open source or pay) for iphone that streams audio from the internet? Something like Pandora... bonus points if it allows for background audio playing. ...

iPhone Multitasking-Like Menu

I am trying to create a menu that slides up from the bottom of the screen just like the multitasking bar in iOS4. Any ideas how to do this? (I looked into UIViews and commitAnimation, but it didnt't quite do what I needed) Are there any examples of this? ...

Autoscroll implementation in a UIWebView??

Hi everyone, I have an iOS app that displays content from a sqlite db in a UIWebView (theres a reason I am using the UIWebView over say a ScrollView, and it is for some CSS). I want to add a feature to my app that will make it easier to read from. I want to have a button, that initiates an autoscroll function where the UIWebView begins t...

MonoTouch library in Xcode?

Hi all, I am considering purchasing MonoTouch to do some iPhone programming in. I am wondering though, if I compile a static library (*.a) in MonoTouch (using C#) to call in Xcode as a standard static library. Does anyone have any experience with this? I have looked around with no results. I even emailed Mono, but no response. Many...

when to use a IBOutlet?

I'm a little confused about the IBOutlet.Is it right I should use the IBOutlet when the variable will be changed in the nib? ...

Displaying UIActivityIndicator while performing a SYNCHRONOUS download

I am downloading XML to populate an array used to build UITableView. Until I'm informed otherwise, I believe I have to completely download the array before I can display it in the table (also it's text only and extremely small, so it downloads in a reasonable time on the slowest possible connection). It does take about 3-5 seconds at it'...

Getting started with AR on the iPhone: How to position things?

Just starting to play with Augmented Reality on the iPhone ... and I have some questions: How do you position elements on the screen? I assume that it is based on a given longitude, latitude and altitude (but I could be wrong)??? Any solid resources, tutorials, etc... dedicated to building AR type apps for iOS? Thanks much ...

Getting started with web development for mobile applications, suggestions?

Hello: I made a very simple site with PHP+MySQL that let's users add professors to a database and post comments. I want to use a framework like Sencha to make my website 'mobile friendly'. Thing is, I'm not sure if that will do what I want or if there's something better for my simple application. What I would like: Relatively easy...

'Card' may not respond to '-fadeAway'

I have a Card class subclassed from UIView and a Deck class from NSObject. Card has a few integer properties on top of the inherited UIView ones and Deck has an NSMutableArray for holding some cards. After generating a deck of cards, I want to display a randomly selected card (by adding it to the superview). Before I do, I check to se...

How can I create a slider/selector in my iPhone app like the Mac OS X dashboard widget slider/selector?

Basically, in my iPhone app, I want to have something almost exactly like the widget slider/selector of the Mac OS X dashboard on the bottom of a view window. Users can slide the row of icons and drag and drop one onto the view. And just like dashboard, the icon animates into something else as the icon is dragged away from the slider/sel...

MPMoviePlayerViewController / MPMoviePlayerController will not play the same movie twice ?!

Steps to replicate: 1. Call playMovieAtURL. Use this url: (http://nov8rixstorage.blob.core.windows.net/searchpad/tutorial_portrait.mov) 2. Let the movie start then press Done. 3. Call playMovieAtURL again using the same URL. Result: MPMoviePlayerViewController animates in; flashes a few times; and closes with error in notification obj...

generate single random number in a view in xcode

hi . i was playng around with an idea. in a single lable in a view when the view appears a random number is displayed. presently i have aview, a lable and a button. press button random number is generated and the lables title is replaced with a random number....random number displayed. what i wish to acheive is that there is no button,...

either current location or destination but not together for iphone

i cannt add them together here is the code in viewdidload ///// show current location //mapView.showsUserLocation = YES; //mapView.userLocation.location.coordinate.latitude; MKCoordinateRegion region =mapView.region; region.center.latitude = 1.3123;// mapView.userLocation.location.coordinate.latitude; region.center.longitude = 103....

Map annotation clustering on iphone?

I have some code that I have written which performs clustering of map annotation points. It works okay. I have clustered upto 2500 map points with it on the screen and its working okay and acceptable speed. What my question is what I have designed and written works well with zooming out but what would be the best way to zoom in with the ...

How can I increment app icon badge when multiple local notifications fire?

I'm trying to understand the applicationIconBadge property of UILocalNotification. I can only set an explicit badge value, I can't specify I just want it incremented when the notification fires. http://developer.apple.com/iphone/library/documentation/iPhone/Reference/UILocalNotification_Class/Reference/Reference.html#//apple_ref/doc/ui...