I have two apps, both of which force the user to use the iPhone in landscape mode, in order to have a wider screen, instead of a taller one. I selected UIInterfaceOrientationLandscapeRight in my plist file as I prefer to hold the iPhone with my right thumb over the iPhone button. Some users would like to have the app start-up in UIInte...
I have a pointer to a view. How do I access its viewcontroller? "[self superview]" is another view, but not the viewcontroller, right?
...
I know that I'm either operating with a fundamental misunderstanding or have just missed something simple here. Basically I'm trying to add a new UIViewController on top of an existing UIViewController when the user clicks a UIButton.
-(void)newCharacterClick:(id)sender{
characterViewController *viewController = [[[characterViewCont...
I want to be able to use the iPhones Mail.app inside my application so my users can send a share email without leaving the application. I know 3.0 made this possible.
I have added the framework properly by ctrl clicking on my frameworks folder -> add existing framework.
Added this to the header file of the viewcontroller I want the ...
I have two view controller classes in my application delegate. I can change from one view controller to the next view controller by issuing the method -pushViewController:animated of the navigationController class and going back to the previous view controller by calling the method -popViewController:animated. Now my problem is I want to...
I have created a simple UIView hierarchy in IB:
Parent (UIView)
child (UIView)
child (UIView)
child (UIButton)
The button sits atop the two sibling UIViews.
My app launches in landscape mode rather then portrait. When the only child view is a UIButton, the button correctly rotates 90 deg. However, when I add the child UIViews th...
In my UIViewController's viewDidLoad method I instance a UIImageView instance called stage:
stage = [Stage viewWithParent:self];
and that calls this:
- (id)initWithParent:(UIView *)parent {
self = [self initWithFrame:CGRectZero];
if (!self)
return nil;
[parent addSubview:self];
return self;
}
+ (id) viewWith...
I have following requirement in my application.
A tableView with games title
After selecting a game / cell
A detail view appears
when user presses on a button to see the huge image from detail screen, it should push another view
a new pushed view should be displayed in landscape mode
All previous view should be in portrait mode & onl...
HI guys,
I have this error that is keeping me from moving forward. I basically have an application which contains a UITabViewController which points to individual UIViewControllers. So one of the tabs, I want to implement a basic TableViewController.
Now, no matter what i do, whether its cut and paste sample UIViewController code that ...
I have written a subclass of UIViewController which creates a view programmatically, instead of loading it from a NIB file.
It has a simple loadView method:
- (void)loadView
{
UIScrollView *mainScrollView =
[[UIScrollView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.view = mainScrollView;
[mainScrollVi...
The parentViewController property of UIViewController is readonly, but I am nesting custom view controllers and would like to use this property.
However, since it is readonly, and I found no other way to set this property, my quesion is: how do I set it?
Obviously, UINavigationController can set the property somehow in -pushViewContro...
I have a UIViewController that contains a subview and a UIToolbar. I'm trying to add another UIViewController containing an MKMapView as a subview, but it is not resizing properly and as a result, the map is overlapping the toolbar. What am I doing wrong?
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil ...
I have a view which flips in using uiviewanimationtransitionflipfromleft. The view that flips in has a segmented control on it. Whilst this all works fine there is something strange happening visually. As the view flips the segmented control appears to be squashed in the centre. Once the view is full flipped everything looks fine. Has a...
I wanted a control like the UISlider, but with two thumbs instead of one so you could specify a range instead of just one value. I read up on other people looking for the same thing and suggestions about making new controls were over my head.
So I decided to setup what I wanted in a nib and then created a view controller to handle its b...
How do I remove a UIImageView's subview (a View Controller in this case) from memory and display immediately?
[myGroovySubview release];
isn't doing it.
Any help appreciated!
Thanks // :)
...
hello how can i call in the current view, a method implemented in the viewcontroller of the current view's superview?
can you help me please.
thanx
...
Hi,
I want to show a custom animation when pushing a view controller: I would like to achieve something like an "expand" animation, that means the new view expands from a given rectangle, lets say [100,100 220,380] during the animation to full screen.
Any suggestions where to start, respectively any documents, tutorials, links? :)
hei...
Hi there,
I'm trying to display a modal view straight after another view has been presented modally (the second is a loading view that appears).
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
// Show load
LoadViewController *loader = [[LoadViewController alloc] init];
[self presentModalViewContro...
Hey,
sorry for the question but i dont found any working solution.
I simple want to display a "CreditsView". So if i press a button show a credits view, press ok view disappear.
I have my base controller and my credits view controller and now i try something like:
- (IBAction)switchToCreditsView:(id)sender {
creditsViewController = [...
It sure looks innocuous enough. In my App Delegate, I check NSUserDefaults for a flag to show tips at startup. If it’s set then, at the end of applicationDidFinishLaunching:, I do this:
TipsViewController *vc = [[TipsViewController alloc]
initWithNibName:@“TipsView" bundle:nil];
[window addSubview:vc.view];
[vc release];
The idea is...