I have an application that I submitted to the app Store. 2/5 of my pages (tabs) would not rotate/resize correctly. Thus I turned off rotation. Thus Apple rejected my application. So I went back to the drawing board. Still those two pages fail to rotate correctly.
Can I reposition my text fields and such programmatically considering...
I noticed today, when adding 1 CALayer and 2 subviews to my view, when I run the following code in my UIView instance:
[self.layer.sublayers count]
This returns 3. Does this mean that a subview is also considered a sublayer? If I only wanted the CALayers that I've drawn in my sublayers call, how would i do that?
...
So it appears as though my MPMoviePlayer no longer wants to seek forward, despite it being the case that seeking is done internally by the MoviePlayer, so all I should be doing is setting up notifications in order to know that seeking is occurring.
So I setup my notification as such:
[[NSNotificationCenter defaultCenter] addObserver:se...
In my code I am using a UISegmentedControl as a "button" with only ONE segment and the momentary property set to YES. In versions of the SDK prior to iOS 4, this was not a problem, but it appears that now iOS 4 requires that there be at least 2 segments. The following code throws an exception:
NSArray *titles = [NSArray arrayWithObject:...
I have a UIMenuController calling a modal view, however the context menu doesn't hide itself upon calling the modal view. The context menu always hides itself when it's out of focus. I don't think this is the right behavior.
...
What resolution does in-app artwork need to be to make use of the high-resolution iPhone 4 display?
...
Hi i have a splitViewController
mapViewController = [[MapViewController alloc] initWithManagedObjectContext:managedObjectContext startingRegion:startingRegion];
distanceViewController = [[DistanceTableViewController alloc] initWithManagedObjectContext:managedObjectContext];
distanceViewController.mapViewController = mapViewCont...
Hello,
I'm developing "landscape mode-only" app for an iPad.
Problem is that my views have wrong positions on the screen, and I can't find the reason...
I've set necessary properties in the Info.plist:
<key>UIInterfaceOrientation</key>
<string>UIInterfaceOrientationLandscapeRight</string>
<key>UISupportedInterfaceOrientat...
Does anyone know how I can set the background of my webView to the textured background that came with the iPad SDK programatically?
...
I have a CoreData Mac app for which I'm writing an iOS front end. All's working well thusfar, I'm able to successfully read files created with the Mac app in the iOS version. I'm struggling with how to read the NSColor data (being stored as an NSData object in my data model) into a UIColor in iOS version of the app.
To summarize: How ...
In a Cocoa app I added a UISlider. If I run the program without adding any code then I can drag the slider left and right. However, if I assign an IBOutlet to it, once I touch the slider, the application exits. Why is that?
...
OK, I know that this has been asked previously, so please forgive me for asking again. It just seems like there has got to be an easier way to do this.
Is there a 'simple' way to change the UITableView section header background color? I know that I can use the delegate method 'viewForHeaderInSection' to hand the UITableView a custom U...
I am presenting a UIActionSheet when a user double taps my cell:
Tap Recognition in Cell Init:
UITapGestureRecognizer *doubleTap = [[UITapGestureRecognizer alloc]
initWithTarget:self
action:@selector(handleDoubleTap:)];
[doubleTap setNumb...
Hi,
I registerd for the keyboard show event, and implemented the method like this :
-(void) KeyboardDidShow:(NSNotification*)notif{
if (KeyboardVisible)
{
NSLog(@"Keyboard is already visible");
return;
}
NSDictionary* info = [notif userInfo];
NSValue* value = [info objectForKey:UIKeyboardBoundsUserInfoKey];
CGSize keyboard...
I have a UITableView with a cellForRowAtIndexPath method that creates a UITextView, then adds it to a cell. No memory leaks were detected, but when running Instruments (Object Allocations), the Net memory is on a one-way trip to 18 MB, where it crashes.
My app constantly adds and deletes cells in the tableView datasource, but because t...
Hi,
I want to create a UIImageView object and initialize it with a rectangle image that will be created by programming and NOT from a pre-created bitmap file.
Thanks in advance,
Sagiftw
...
My iPad app uses an external "device" that acts as a hardware keyboard. But, at some point in the settings, I need to input text and I can't use the "device" ("device" is not a keyboard).
So, is there any way to force pop the soft keyboard even thought I have a hardware keyboard connected?
...
I created a custom UItableviewcell
added a button into its initWithStyle area:
favoriteButton = [[UIButton buttonWithType:UIButtonTypeRoundedRect] retain];
favoriteButton.backgroundColor = [UIColor clearColor];
[favoriteButton setTitle:@"Play" forState:UIControlStateNormal];
[favoriteButton addTarget:self action...
I'm trying to either add 3 custom buttons to my navigation controller toolbar on the top of my view or add a segmented control with 3 options. I have the following code on my app delegate for when i create my view controller(fwc) but the buttons dont appear.
/*
Set up the navigation controller for the Feeding Tab
*/
// instan...
Hi,
I want to create a blue rectangle image and see it in my view, but this code doesn't seem to work:
CGRect imageRect = CGRectMake(50, 50, 64, 40);
UIGraphicsBeginImageContext(imageRect.size);
[[UIColor blueColor] set];
UIRectFill(imageRect);
UIImage *aImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndIma...