iPhone UILabel animation
Hi all, I have a UILabel and when the value change in the label, I want to highlight it's background color from another color and exists for 2,3 seconds and get back to normal color. Anyone have an idea how to do this? ...
Hi all, I have a UILabel and when the value change in the label, I want to highlight it's background color from another color and exists for 2,3 seconds and get back to normal color. Anyone have an idea how to do this? ...
I want my view controller to display different views based on a condition that depends on some runtime checks (lets say a uiwebview at even hours and a form on odd hours). What is the best pattern to achieve it in iphone project? Maybe I can hide controls based on aforementioned condition or maybe it is better to load different views? or...
Hi everyone, I'm trying to enable shake gestures within my application but I'm having a problem. I have different view controllers, but on one of them (not the main view controller for the application) nothing happens in response to a shake gesture. What could be the problem? The relevant code is as follows: -(BOOL)canBecomeFirstRe...
Hi, I apply impulse in an object in box2d iPhone app and now want to increase its speed in particuler direction....i mean i need two thing 1.through the object in a direction 2.increase speed plz help.. ...
I am a complete novice to iPhone/iPad development, but I have OOP experience in other languages. I apologize in advance if this question is rather vague. What I really want to know is this: My app idea needs to work in a single view where the view is a scrollable area that is a fixed height (bigger than the viewport). Various differe...
Hello, There's probably something really obvious I'm missing, but no matter how I trawl the documentation & the blogs, I can't find a way to make a button report whether or not it is being touched, regardless of whether the touch moves, etc. I have an up & down button, & I need to call the relevant method whenever there is a finger on ...
I've been using that kind of methods on and off but never really understood how they behaved. Every time I try to use them, I find myself poking in the dark as I try different aspect and it never seem to do what I expect it to. For the sake of argument, I'm trying to convert the frame I get from UIKeyboard's notification. In landscape...
Hi, I'm trying to extract the names from this list: new String: blood cz TheDeAtH TBH DragonFire Scotsman King Kot BobLeeSwagger AffeMitWaffe Jackobo D L fatality Jack bobo telex apa Tiger zip Guronzan no...
Hi, in several example codes one can find this static NSNumberFormatter *numberFormatter = nil; if (numberFormatter == nil) { numberFormatter = [[NSNumberFormatter alloc] init]; [numberFormatter setNumberStyle:NSNumberFormatterDecimalStyle]; [numberFormatter setMaximumFractionDigits:6]; } Isn't that code producing memory ...
I have a series of images that play in my application (it's only got one view/viewcontroller). Whenever I run the app, the first time I play an animation, it will lag a bit the first time the animation is told to play. I run my animations via different methods (e.g. "animateJump") which are responsible for loading the correct frames, th...
Hello, I am new to iPhone programming, so I think part of the problem is that I don't know what I really want to google to find my answer. I am looking for a method that allows a user to draw a line on the screen. There is no guarantee that it will be straight, it can be curved or whatever. I was thinking that I could create some sma...
The google earth API looks awesome. Unfortunately you can't use it on the iPhone/iPad, because the UIWebView does not allow plug-in's. The functionality as rendered in maps.google.com - earth view is amazing. What is the technical reason for using a plug-in vs doing something with just AJAX/native? Is it a technical hurdle, or a busi...
I am trying the following code: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { Thing *sub = [[subscriptions objectAtIndex:indexPath.row] retain]; StoriesViewController *thing = [[StoriesViewController alloc] initWithThing:sub]; thing.navigationController.title = sub.title; [self.navigat...
Hi Forum I have an app that stacks quite a nice amount of views on top of each other. At some point I receive a Memory warning level2 (which is kind of expected). The thing is, when I run Instruments, I don't have any memory leaks and the app takes up something like 9-10MBs... which is not that much, I'd say? Question is: how much me...
hi, if i want to check whether a textfield or string is empty i compare it with NULL or nil? thks ...
How do I go about opening a view in the way that you see in this example? Thanks! Dave ...
Hi, I am trying to make my application that is in the background come to the foreground after a call is disconnected. Here is the code: if([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tel:0123456789"]]){ [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:0123456789"]]; } else { // Could no...
For various reasons I need my iPhone app to include a way to tell the user that a new update for the app is available and prompt them to go update in the App Store. It looks like there used to be an undocumented way to give an HTML link that would lead the iPhone to open the Upgrade page for app, or something? http://stackoverflow.com/...
I previously used the Settings bundle on in my iPhone app but am finding it an increasingly annoying overhead to my code and have decided to move all the settings to inside my app. When I next issue an updated app is there a way to have the old Settings Bundle removed without having to somehow ask users to re-install? ...
My code is working perfectly to reduce the size of a UITextView when the keyboard comes up. The problem is, the signature of the method is - (void)keyboardDidShow:(NSNotification*)aNotification but the calling code //[nc addObserver:self selector:@selector(keyboardDidShow:) name:UIKeyboardDidShowNotification object:nil]; is comme...