I recently discovered that UIViews should only have UIViewControllers when they fill the entire window (or are managed by another UIViewController such as a UINavigationController or UISplitViewController). This quotation is from the documentation for UIViewController:
You should not use view controllers to manage views that fill only ...
When an iPhone app with GameKit launches, and the device is already logged in to GameCenter, a small message slides in on top of the screen, saying something along the lines of "Welcome back %username!".
What I found out is the following: that message appears in its own UIWindow that eventually slides the message away and releases itsel...
Hi,
I have a table view with custom cells. When i enter the editing mode, no edit buttons (delete/insert) are shown but editingStyleForRowAtIndexPath() and setEditing() are called.
Do i have to do this drawings by myself or have i just forgotten something ?
Thanks
Claus
...
Hi
I have been using UIViewAnimation for simple animations i the past, now I can see that Apple discourages the use of this Class in +4.0. I started looking into CATransitions and -animation. It gives some more fine grained control but seem really bloated for my limited use.
When I try to get a grip of the possibilities on the platform I...
Hi Folks,
I'm trying to figure out how to place a subview to a custom UITableViewCell with centered position. As stated in the documentation (Customizing Cells) one should "...add subviews to the contentView property of the cell object or ...". As I noticed it works fine with UITableViewStylePlain. In UITableViewStyleGrouped tables, sub...
[self presentModalViewController:navController animated:YES];
I have scroll view with page control and paging enabled, each page has buttons who when pressed present modal view controller with additional data.
when running on device with iOS 3.0->3.2 modal view controller on first page of scroll view animates properly (view scrolls ...
I am trying to detect touches, but the touchesBegan method is not being called.
In my ViewController, I have added the touchesBegan method. My Nib files owner is set to the correct V.C. The Nib itself consists of the view, with a scroll view and a tab bar. Nested in the scroll view is an image view, which has user interaction enabled. W...
In my app I have a UIPickerView as a subview of a table cell's contentView. I disable scrolling in the table view, and the arrangement works fine under normal circumstances. However, I've found that when VoiceOver (or the Accessibility Inspector) is turned on, the app crashes as soon as the picker is due to get focus.
The error is:
-[U...
I have a common application pattern: user enters data in the main view controller, then views it in a table in a modal view controller, where rows can be deleted or modified. I was following the general design strategy from the Stanford iPhone course, but somewhere things went off the rails and all I've been getting is SIGABRT's and exc...
I have some (fairly large) UIButtons. Instead of text, I would like to draw some simple colored graphics inside them (lines, boxes).
How can it be done without resorting to using prerendered images?
...
Are there any stock images that come with the system that I can use to fill a UIImage? For example, if I want a picture of a folder, do I have to include the image with my app? Or is there a system wide folder image I can load/display.
...
Occasional reader and first time question asker, so please be gentle :)
I am creating a Managed Object (Account), that is being passed into a child view controller where its being set in a property that is retained.
Account * account = [[Account alloc] initWithEntity:entity insertIntoManagedObjectContext:context];
AddAccountViewControl...
I want to start my iPhone application with a password.
How I do that ?
Regards
Akram Hamed
...
I'm using UIGestureRecognizer for the first time and I want my app to run on iOS 3.0 onwards.
Since Apple clearly states that the library is available in iOS 3.2 and later I used the following code:
// Make sure that Gesture recognition technology is supportted by the device SDK version
if ([UIGestureRecognizer instancesRespondToSelecto...
Hello
UIViewController *viewVC = nil;
NSString *TcodeNib = [selectedObject valueForKey:@"ViewControllerName"];
// Create the next-level view controller
if ([TcodeNib isEqualToString:@"FirstViewController"]) {
viewVC = [[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil];
} else if ([TcodeNib isEqualToStri...
Hello,
I would like to draw a nice looking fonts in Cocoa Touch (by "nice looking" I mean white font with blurred black border that looks like shadow)
The question is either:
Is it possible to display bitmap fonts in coca touch
Is it possible to render a border for a font (for each character)
...
Is it possible to use bitmap fonts in cocoa touch / quartz 2d? If yes how do I do that?
...
I had an idea for an app that would require me to implement these little sprites that would require basic physics features like gravity, acceleration, etc... so naturally I looked into a game loop for the iPhone, there were plenty of threads on this, but what I am trying to understand is that I want to be able to create these sprites and...
Is there a build preprocessor I can use, like #if or #ifdef to check whether my current xcode project is being built for iphone or ipad?
...
I'm probably doing something wrong here because this looks a bit stupid.
I'm setting up a custom titleView (in the form of a UILabel) on my UINavigationController that is the same on every page. To facilitate this, I've created a function in my app delegate to display the label correctly. I then call this function on any subviews just af...