my app asks the user yes-no questions, user replies using a uiswitch on screen. i've been thinking about creating a custom version of the switch that would display yes/no instead of on/off and would use a green/red background as an indicator of the value. after creating a mock up i'm not so sure this is the way to go. using the default s...
For some reason after updating to Snow Leopard, my Xcode 3.2 is stupid like a toast. I had all iPhone SDK's, tons of Gigabytes of data. All is gone to deep toilet. And now I start downloading all that stuff again. Is there maybe some little hope that all those SDK's are still on my mac, somewhere? Where? Or must I really re-download and ...
After my upgrade to Snow Leopard and Xcode 3.2 (which I really regret a lot!!), Xcode lost all the SDK's. I'm one of those old-fashioned idiots who still want to develop for 2.2.1. But Apple does not offer me an old SDK download.
Now I was clever and made tons of time machine backups. But: What's the preferred way to get iPhone SDK 2.2....
I can't do anything right now, because after updating to Snow Leopard my whole development environment is totally screwed up. Do I also have to run through the painfull process of assigning provisioning certificates and all this annoying stuff once again now? It's long time ago I did that, but I slightly remember I had to set up somethin...
I know this is a subjective question. As far as I know, there are somewhat about 25 MB available for the app, but it depends on what else is going on. Currently playing music, a current phone call or what ever might drop that amount of memory down a lot. I don't know.
Just tell us what you think, or what you have experienced. My app cur...
I fear this is evil code:
CGRect iRect = CGRectMake(0.0f, 0.0f, 320.0f, 400.0f);
UIImageView *imgView = [[UIImageView alloc] initWithFrame:iRect];
imgView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"b0001.png"],
[UIImage imageNamed:@"b0002.png"],
// 150 more
[UIImage imageNamed:@"b0152....
When I try to use UIView with cocos2d I have a problem.
I create UIViewController, add view to it and add view to window:
helpController=[[HelpController alloc] init];
helpController.view=view;
[[[[Director sharedDirector] openGLView] window] addSubview: helpController.view];
@interface HelpController : UIViewController
{
}
@end
@imple...
I am adding some basic animation to a card game I'm working on. (My first iPhone app.)
I am creating a custom UIView class "AnimationContainer", which flips from image1 to image2, while moving from rect1 to rect2. My ultimate intention is to have up to four of these containers doing their transitions simultaneously.
The problem I'm hav...
So I have a UITextView that I'm using to allow the user to submit some text.
My problem is, I can't seem to figure out how to allow the user to 'Cancel' by tapping away from the UITextView.
...
I have implemented this below code.
UITableViewCell *cell = [tableView1 cellForRowAtIndexPath:indexPath];
UITableViewCell *cell2 = [tableView1 cellForRowAtIndexPath:oldIndexPath1];
cell.accessoryType = UITableViewCellAccessoryCheckmark;
cell2.accessoryType = UITableViewCellAccessoryNone;
oldIndexPath1 = indexPath;
But, if I select an...
So I'm trying to pop a view controller off the stack when an error occurs, but it seems like it's popping too much off in one go. The navigation bar up the top loses its title and buttons, but the old table view data remains visible. I have no idea what's going on...
The basic set up is:
Tab View template
Navigation controller
View ...
I deleted UIKit.framework and Foundation.framework in an xcode project my accident. I cant find the framework in the target information (general tab) link libraries section. How could I add them to the project again as i am now getting many many many errors!!
...
Looking at the UIWebView docs, it says that
Before releasing an instance of UIWebView for which you have set a delegate, you must first set the UIWebView delegate property to nil before disposing of the UIWebView instance. This can be done, for example, in the dealloc method where you dispose of the UIWebView
I'm creating a webvie...
I'm trying to go nibless on the "View Switcher" program from Beginning iPhone Development and I'm running into a couple of problems.
Here's the source code.
1) The first time I switch to the "yellow" view the button kind of "slides" in.
2) The view doesn't fill up the whole screen.
Basically, I just have a BlueViewController and a Yel...
I have a simple UIButton with an Alpha property that I would like to animate from 1.0f to 0.0f, and then back to 1.0f. This is basically responding to TouchDown.
Also, is there anything special I need to do if the routine I am calling from is not on the main thread (async delegate invoked on the ThreadPool)?
Should I use CAAnimation?
...
I have a UIScrollView that's around 600pixels in height and 320 in width. So I'm allowing the user to scroll vertically.
I'm also trying to capture horizontal swipes on the view. The problem seems to be that when a user swipes horizontally with some accidental vertical movement, the UIScrollView scrolls and my touchesEnded delegate me...
Is there a difference between these two lines of code?
self.tabBarController.selectedViewController = [self.tabBarController.viewControllers objectAtIndex:1];
and
self.tabBarController.selectedIndex = 1;
My app just crashed on the top statement so it might have some memory issues. Are there any advantages of one method over the ot...
I want to display current time in my iPhone app using my own custom graphics. What's the most efficient way to get the hours, minutes and seconds info? I thought about using NSDateFormatter to get each part but this seems to be too CPU intensive.
...
I'm trying to create a custom "blinking cursor" in UIKit, I've tried as shown below, having 2 functions that basically keep calling each other until the cursor is hidden. But this leads to a nice infinite recursion... for some reason the functions call each other right away, not each half-second as expected.
I tried returning if the 'fi...
My iPhone app uses CoreData and I would like to prepopulate the database. What's the best way to go about this?
...