I'm doing some lazy loading of images into an array when the app has loaded. I have tried using an NSMutableArray and an NSArray (I don't need to alter the array once it's been created) but the latter crashes on me.
...
[self performSelectorInBackground:@selector(loadImageArrays) withObject:nil];
...
- (void)loadImageArrays {
NSAu...
I'm designing the back-end for an iphone application. I'd like to use Core Data. Is there an ideal transfer format for iphone apps? I'm leaning towards JSON unless there's some custom binary thing. I'm probably using ruby on the backend.
For example, in the Flex/Flash world, you can install a small piece on your server that lets you se...
Hi All
I wonder if anyone could suggest the best way to go from one color to another in a gradual process.
So - I have a text box which I have a text limit on. I'd like to have the text start at white, but be red by the time it gets to the max text limit.
Is there an easy way to do this? I'm unsure really where to start...
...
I am trying to get a sound to play in the iPhone Simulator (using 3.1 SDK). When I add a breakpoint, and step through the code in GDB, the sound plays. However, if I disable the breakpoint, the sound does not play.
The code to invoke the sound is:
SoundEffect *completeSound = [myobj completeSound];
if (completeSound != nil) {
[co...
I'd like to allow users to reset the Defaults in the iPhone's Settings for my app. I don't seem to be able to find any examples in apps that I've seen. Basically you'd go to Settings and find the settings for your app. At the bottom of the list there'd be some kind of option to Reset or Defaults or whatever. I'm just not sure how to hand...
I have a lot of images in my app so I decided to do some loading in a background thread, and since UIKit isn't thread-safe, I filled arrays with CGImageRefs. However, they are not cached and I need to be able to access them fast so my question is:
How to cache CGImageRef, or cache the UIImage derived from it later on in the main thread?...
Hi
I have a navigation-based application in which I would like just one of the viewcontrollers to support landscape orientation. For that viewcontroller (vc1), in shouldAutorotate, I am returning YES for all orientations and in the other controllers I am returning YES only for portrait mode
But even then if the device is in landscape m...
I have the following items in my app nib:
the usual: file's owner, first responder window, delegate
View Controller "a"
View "b"
UIScrollView "c"
some other stuff in "b"
In my AppDelegate applicationDidFinishLaunching, I do this:
[window makeKeyAndVisible]
[window addSubView:a.view];
create a view controller "d"
create a naviga...
Please refer to bellow image to get detail:
I think, UITableView has some events occur when scrolling em when a group complete replace other, but I don't know :(
...
Hi!
I am making an app for preschoolers with several mini-games. One of them involves finding "what is wrong" in the picture. For example if they press the kid playing in the street, a pling sounds, the child is moved out the street, and a label is updated to "1/5 errors found". If they find them all, they move on to a new viewcontrolle...
Hello!
I want to create a custom UISwtich with three positions. Is it possible?
...
I am new to developing iPhone apps and have been testing on on the simulator and on my 2nd gen iPod. I am seeing lag times in what I believe is simple code. I know that the simulator will always run faster than the hardware, and I know that when I'm debugging, that the physical iPod has to run the debugging program in the background wh...
I have noticed code from other sources where the author has not added the messages to super that are shown below. I usually add them both, but I was just curious as to what they do and am I right in always adding them?
-(void)viewDidLoad {
//... other code
[super viewDidLoad];
}
-(void)viewDidUnload {
//... other code
[...
Is there any difference between a CGRect and an NSRect? In particular, I'm wondering about the position of the origin. Are there any important differences I need to know about?
...
My app will be using slightly thicker separator lines in tableViews - about 3x the thickness. I have already done this in some areas by setting separatorStyle to none and customizing cell backgroundViews with custom backgrounds that include my thick separator.
The issue with this method is that it only applies to real rows. Thus if I ...
i want to update or re-draw the table in firstView,when i go back to first view from second view. i use navigation controller and popViewControllerAnimated is used to back to first view.
i dont know how to call draw table function when it is back to previous view.
thanks
...
In my UINavigationBar: didPopItem: function the navigation bar's _itemStack has n items in it, shown in the debugger, but the .items accessor function returns an array with n-1 items in it, missing the current navigation item, which is what I want to check. backItem returns the n-2 item instead of the n-1, etc. The didPopItem item is the...
My sister is a totally internet radio freak. She listens to internet radio all the time. So I thought why not write a little funny styled app for her upcoming birthday ;-)
I'd like to understand the concept behind streaming online web radio. As I never listened to online radio myself I need some advice from you guys.
Questions in my m...
Before reinventing the wheel, I'd better check out if there are solutions I can buy or get for free?
I want to make a little web radio streaming app for my sister. Maybe there's a library that can play streams from the web?
...
I am pretty sure what I am seeing is how this is supposed to work, but I as just curious as to why. When I rotate the iPhone in the simulator the method (see below) that allows the orientation gets called twice with each single rotation. Is there a reason for this?
-(BOOL)shouldAutorotateToInterfaceOrientation:interfaceOrientation
ED...