iphone

didSelectRowAtIndexPath in editing mode to update data

Hey all, i try to modify my didSelectRowAtIndexPath Method to use my AddView also for editing (only with filled textfields). But it is not working! I just enter edit mode, check if(self.editing) and do something like: if (self.editing) { AddViewController *viewController = [[AddViewController alloc] ...

select multiple images from photobook library at once

hello i would like to know if there is a way to load multiple images from a photobook on the iphone in one step into an array or something like that. i've seen a iApp with this kind of feuture before, but can't remember the name of this app anymore. in this app I had the possibilty to choose the first image. after that, a menu from bel...

Importing large datasets on iPhone using CoreData

Hi there, I'm facing very annoying problem. My iPhone app is loading it's data from a network server. Data are sent as plist and when parsed, it neeeds to be stored to SQLite db using CoreData. Issue is that in some cases those datasets are too big (5000+ records) and import takes way too long. More on that, when iPhone tries to suspen...

Transparent UITableView on the iPhone?

Hi, I've been trying to create a transparent table view recently but I'm not having much luck. The idea is to have a MapView (or anything for an example...) underneath the table view (grouped) where the table cells are solid but the rest of the table view is transparent, showing the map behind. What I've done so far is create a UITable...

how to check repetition of numbers in an array?

I generate random numbers and store them in an array. int RandomNumber = arc4random() % 12; [NSMutablearray *Number addObject:[NSNumber numberWithInt:RandomNumber]]; Now i want to make sure the same number is not created randomly again. Can any one please tell me how to do it with sample code. ...

Limit number of characters in UITextField where input is from UI

Hi, I have a UITextField for which I get input from some buttons that are part of the UI (so the input does not come form the phone's virtual keyboard). I want to limit that number of characters. I tried using the shouldChangeCharactersInRange, but it only works if the input comes form the virtual keyboard, and it doesn't work if the in...

What format should I be publishing my videos in?

Just wondering what format is accepted as "the best" to have your video content on. We currently have our videos in FLV format being played by a JW Player. Are FLV's iPhone compatible or should we be encoding in another format? Thanks! ...

Alternatives to OpenGL ES for complex animations?

Hi everyone, I am relatively new to iPhone programming, and I have a considerably complex app to develop. This app requires animations such as burning a photo, flushing something down a toilet, etc. Is there any way I can manage to code these animations without having to learn OpenGL ES? ...

How to read an array of integer?

NSMutableArray *Number=[NSArray arrayWithObjects: @"1", @"2", @"3", @"4", @"5", @"6", nil]; I have an array of interger and need to read them one by one. Can anyone please tell me how to code it? ...

Reorder NSOperationQueue

I'm looking for a way to reorder an NSOperationQueue. I could cancel all the operations and toss them back in using the order I want, but I was hoping for something a little bit cleaner. Any thoughts? ...

Where can I find beginner iPhone tutorials?

Hi, I am looking for beginner iPhone SDK tutorials, but something a little bit more complex than "Hello iPhone!". So far I only found a free one at: http://dynamic-leap.com/beginner-iphone-tutorial-polygon/ Any other suggestions? ...

how can I create unlimited UIImageViews with a Button press of which I can address any later?

Hello, I want create a UIImageView with a button press. I did this with: - (IBAction) addPicture:(id)sender { imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0.0, 45.0, 324, 52.0)]; imageView.image = [UIImage imageNamed:@"Picture.png"]; [self.view addSubview:imageView]; } I "created" this imageView in the .h, beca...

Sending data with POST, issue with character encoding

I am having issues with my NSURLRequest and doing a POST whenever the string includes %, for example. On my website, I can see that the encoding is ISO-8859-1,utf-8 for Accept-Charset but for some reason I cannot get the POST to work if it includes "%&$" etc. It seems like it won't encode it with UTF-8 encoding. Am I doing something wro...

Is there an ideal transfer format for iphone web services?

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...

UIColor/RGB Way to go from X Color to Y Color

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... ...

How can I detect which UIImageView was selected with a touch in touchesBegan?

Hello, The user can create a unlimited number of UIImageViews with a button press with this code: - (IBAction) addPicture:(id)sender { imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0.0, 45.0, 324, 52.0)]; imageView.tag = a; imageView.image = [UIImage imageNamed:@"Picture.png"]; a = a + 1; [self.view addS...

iphone app performance data

i was trying running application with instrument tool. but it collects so many data. so i am confuse where to look exactly in order to optimize my app. is there any best start up guide or any best practice. hope my question is genuine and clear. Edit: attaching sample image from instrument.how to interpret this data. click here for fu...

Sound plays in iphone simulator with breakpoint, but fails to play without breakpoint

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 am using IB. For some reason, I have one XIB that when I open it I cannot see the layout view?

I am having a Interface Builder tool issue. I have a XIB that is not being displayed in layout mode (where I can see text fields I have added etc.) Doesn't happen with any other XIB. What is going on? I can't seem to find any command to make it show. Tia. ...

Accepted way to let user "reset" apps settings (NSUserDefaults)?

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...