locating image files from hard disk to UIImageView
I have downloaded the image from ftp server ,the downloaded images are stored in hard disk , i want to locate those images files in my ImageView . ...
I have downloaded the image from ftp server ,the downloaded images are stored in hard disk , i want to locate those images files in my ImageView . ...
Hi there, I'm learning how to use plist files for storing data in my iPhone app. I've been reading a bunch of the questions about plist and dictionaryWithContentsOfFile on this site, but can't see what I'm doing wrong. The following line returns nil ("The dictionary is null" to the console). NSLog(@"The dictionary is %@",[NSDictionar...
Hi all, I need a clarification regarding the difference between the NSString and NSMutableString. Can any one expand briefly? Thank you, Sekhar Bethalam ...
What I'd like to do is have 3 or 4 buttons on a UITabBar. All except one of these behave as normal UTabBar buttons - ie they switch between different views. But I'd like one of the tab bar buttons to perform a function - refresh the app's data - without switching views… Is this at all possible? ...
I have an audio file that plays when a user clicks on one view. my problem is that if they move to another view the audio continues to play. I would like the audio to stop if the user is no longer on that view. is this done in the viewDidUnload method? here's the code that plays the audio after a 15sec delay: -(void)startPlaying { ...
Hi there, Im fairly new to the whole world of iPhone dev so forgive me if this is very easy. I have an object Card that holds 6 Question objects on it. when I say [card getQuestion:@"Art"] I am currently returning a Question object like so - (Question*) getQuestion: (NSString*) questionType { Question *q = [questions objectForKe...
Hi, I have a UIScrollView that nests a UIImage and several symbols that are placed on the image programatically. When the user zooms I need to scale these symbols up to have them keep the same size, whilst the underlying image is zoomed. I placed the symbols and the image in a UIView to ensure the symbol position is alidned to image ...
I'm looking to stop an audio file from playing when the view is changed. I'm using a tabController and I would like the audio that's playing to stop when the user moves to a different view. I'm not sure where and how I would do this. in the viewDidUnload perhaps? here's the method I'm using to play the audio file: -(void)startPlaying...
I need to make an app that turns a movie (shot from the iphone camera) to black and white. Does the iphone have any frameworks that I could use to apply effects to recorded videos? ...
I have a ViewController defined as follows: @interface SectionController : UITableViewController { NSMutableArray *sections; } - (void) LoadSections; When LoadSection is call it makes a call to NSURLConnection to load a url which in turn calls - (void)connectionDidFinishLoading:(NSURLConnection *)connection { NSString *res...
I have an ivar mutable array which i setup in viewDidLoad as follows: names = [NSMutableArray arrayWithCapacity:30]; [names addObject:@"Joe"]; [names addObject:@"Dom"]; [names addObject:@"Bob"]; Then in a later method, on tap of a button, i do the following, but the array appears to be overreleasing... with Zombie messaged: int r = a...
How can I replicate the Finder's "Open With" menu for a given file type? ...
I have this code: NSLog(@"Count of items we will loop through is: %d",[self.defaultBudgetItemsArray count]); id object; while (object = [e nextObject]) { if ([object objectForKey:@"actualCost"]) { currentTotal = [currentTotal decimalNumberByAdding: [object objectForKey:@"actualCost"]]; NSLog(@"decimalNumberByAdding g...
It appears to me these two class methods are not interchangeable. I have a subview of UIView with the following code in the touchesBegan method: if (!highlightView) { UIImageView *tempImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Highlight"]]; self.highlightView = tempImageView; [tempImageView release]...
I'm not quite sure what to call it, but I have a text field to hold a currency value, so I'm storing that as a NSDecimalNumber. I don't want to use the numbers & symbols keyboard so I'm using a number pad, and inferring the location of a decimal place like ATMs do. It works fine for entering numbers. Type 1234 and it displays $12.34 but ...
My iPhone app has a tabBar at the bottom. The 5th tab is rarely used... but pretty memory-intensive... so I want to make it UNLOAD each time it is exited (by the user clicking on a different tab). But how? I thought I just needed to call "[self viewDidUnload]" but that doesn't seem to do it. Where is the "forceThisViewToUnloa...
I'm trying to get rid of a cached UITableView cell. I have two sections. The first cell of the second section has the same "appearance" as the first cell of the first section. With appearance I mean the cell height (multiline cells). I tried to use different identifiers, but that didn't worked. Here is the code: NSString *identifier; i...
Hi all, I have the following core animation code in my app : -(void)startCoreAnimation [UIView beginAnimations:@"IconFade" context:Icon]; [UIView setAnimationCurve:UIViewAnimationCurveLinear]; [UIView setAnimationDuration:1]; [UIView setAnimationRepeatAutoreverses:YES]; [UIView setAnimationDelegate:self]; [UIView ...
I'm making an alarm clock app with multitasking support. However, I'm stuck with some limitations of the sdk. I need to play selected alarm sound whenever the alarm time comes with some properties set by the user. These properties: - Alarm sound can be a music from the user's iPod library, and also some sound files in application bun...
I'm trying to use the answer accepted here: http://stackoverflow.com/questions/3249182/ But it gives a warning (and it doesn't work) of: implicit declaration of function 'class_addMethod' I have searched google but have no idea? ...