UIAlertView Delegates
Can someone explain how the delegate to a UIAlertView works? Is it automatically called or do I have to call it? Eg: - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex ...
Can someone explain how the delegate to a UIAlertView works? Is it automatically called or do I have to call it? Eg: - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex ...
So I got entities Level and Tile. Level has a to-many relationship with Tile. Tile has a property 'index'. Right now I'm using this code to get the tiles array of Level sorted: - (NSArray *)sortedTiles { NSMutableArray *sortedTiles = [NSMutableArray arrayWithArray:[self.tiles allObjects]]; NSSortDescriptor *sortDescriptor...
I pulled the latest version of three20 from github, and installed their template. I opened it up in XCode, build and run, then I realize the template isn't iOS4 ready. The first issue I found was "Base SDK not found", I solve it Edit Project Setting , changed the Base SDK to "iOS Device 4.1" Then I run it again, I got tons of errors r...
Hey, I'm developing an iPhone application and my target is 3GS and 4G devices. iOS 4 introduces methods thats deal with multitasking and newer methods to deal with foreground/background lifecycle events. These new methods aren't available in iOS 3 which simply quits the app and doesn't run it in the background. Any tips on how to create ...
Im getting this blue line when i try to hide the status bar, I'm using the following line in the touchesBegan method in my RootViewController [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade]; http://i.imgur.com/GBCgX.png ...
i have an if statement comparing two NSStrings, one is user input from a UITextField the other is a NSString created from random integers between 0-9 inclusive, however the comparison is failing everytime even thought they are the same which is shown in the log from an NSLog call. so can anyone see anything i'm doing wrong in the supplie...
I am trying to do something as simple as add a Label to a View in XCode and IB and I can't figure out how to do it. All the samples I find online are for older versions of IB so the directions aren't correct. I have a label on my .xib file, in my Controller.h file I have an IBOutlet UILabel declared with a Property set up. In my Contr...
For those times when a UISlider just isn't fun enough I was thinking I'd work up a custom UIControl to do something similar to a Google O Meter from the google chart API on iOS. Here's an example of what I'm talking about visually. My goal would be to enable touch manipulation of the needle and easy customization of the range labels and...
I have the following code but doesnt work [self performSelector:@selector([A1 setImage:[UIImage imageNamed:@"m1.10002.png"] forState:UIControlStateNormal]) withObject:A1 afterDelay:0.1]; How can I execute the following statement after a certain time [A1 setImage:[UIImage imageNamed:[NSString stringWithFormat:@"...
In XCocde when you create a data model diagram, it will also generate the classes for each entities in the diagram which inherit from NSManagedObject. The question is are these classes considered my "Model" classes? OR are they just a bridge between my core data and model classes? PLease if you have a good tutorial let me know, i've be...
i am posting this again as i earlier results was in vain now i have a table view --> section view i want section view to behave same as tableview like you can scroll forcefully and still data are consistent but in my section view they are sometime changing their place , as i cant go with static cell because i want the section view s...
I've got a UITableViewController with a bunch of random items in it. I want to be able to add items to it, and delete items from it. I have a UITextField in the first section header, so you can type in a word/phrase and add it to the list. You can delete words from the list without issue, however, if you add a word to the list, then tr...
I am writing an iPhone application that contains a tab controller, each tab item has a separated view controller and a xib file. It work normal when I only display views without any outlet connections from nib to my class. But when I try to connect items on the xib to my class variable. The application always crash. The code is like: ...
I want to create smooth moving pin after update location. like current location pin in iPhone Map. because I want to notificate updated locations smoothly. ...
I have a UITableView that I am adding a row to with an animation (using insertRowsAtIndexPaths:withRowAnimation:). This is all good as long as the table is not longer than the screen. If it is bigger than the screen then I am trying to scroll to the bottom, but it not quite working how I want... If I scroll to the new row after it is ad...
I'm using win7. and i have website which i want to test it with iPhone browser environment. which it's use most flash (jISFR). this is the website i talking for, http://www.hamuranalodge.com/ may you can see menu navigation is using flash jSIFR, which it's seems not work in iPhone, and want to fix it. of course i need iphone Testing ...
is there a script to detect, if the visitor use iphone (whatever it's browser, may iphone Safari, iPhone for Opera or etc.)? Then will shutdown some some of my JavaScript. Thanks... ...
I want to make a favorites button in my tab bar controller which permanently saves that live feed in my app. the feed description is in text. So basically i want to make an array of those texts which are saved permanently in my favorites table view. How should I start with it. Do i have to make another class for it ? ...
Hi My application handles with files of type *.mndl which is not more than a customized *.plist. Up until now I've been using *.plist files but now I want to associate the extension and be able to open *.mndl files from any other app I have realized that renaming file.plist to file.mndl does not work. (Hence, I don't even know if I did...
So I'm making an iphone app that just has a thousand entries that I'm reading from an xml file into core data. But inserting these records takes like 10 seconds on the device. It's pretty ridiculous. The schema is very simple, just one table. I.e., no relationships or anything. To see what I mean, you can just go to: 1. File -> New Pr...