Hi
Im using some transitions(Flip) to switch to my "settings/about" view in my iPhone app.
I initiate the transition like this:
SettingsAboutViewController *settingsView = [[SettingsAboutViewController alloc] init];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAn...
First of all, the question is very simple, but I have tried to look around on the Internet and I couldn't find a name for this. Several applications such as "Ping Lite" have used this view in their application. It allows you to have submodules/applications as icons and you can scroll the page around just like when you are at "home" scree...
Hi
I have this concrete problem, but if You find my initial design idea crazy and have a better suggestion, please let me know:)
I have a UIView that acts as a container/background for adding other views. The important thing is that only one view is present at a time. So before doing any adding of views I do this:
for(UIView *...
In a view based app, I display a view and once the user is finished with that view, Done is clicked and the view is removed. However, that does not dealloc the view, which is what I want to do. What is the proper way to dealloc this type of view?
Currently, I'm nil'ing out the second view before it is called. That seems to work and t...
Say I have 4 UIViews, made in IB, all with the tag property = 2
When I get a view with:
UIView *thisView = (UIView*)[self.view viewWithTag:2];
What is the criterion for retrieving that UIView since several have the same .tag value?
Is it:
random
the first one created
the view with the lowest index in it's superview
somet...
Hi guys.
I'm using a UINavigationController to manage my UIViewControllers hierarchy. For one of these UIViewController, i need to change its view bounds programmatically (depending on specific conditions) so i used setBounds and it's working fine.
My issue is this : when i change this view bounds, then push another UIViewController to...
Hi,
I have my app set up so that auto-rotate works. Things like tableviewcontrollers and tabbarcontrollers automatically resize them selves without the need for me to write any code. However I need my webview etc. to resize when the device is turned to landscape. I set:
webView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
...
I have a really simple app, and I'm stuck just in the beginning.
Let me post the code right here.
TapStackView.h
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
@interface TapStackView : UIView
{
//Layers.
UIImageView *backgroundImageView;
UIImageView *powerOn;
}
@property (nonatomic, retain) UIImageView *backgro...
In photo app of iphone you can see smooth scrolling to the other picture with finger flicking. Is it possible to allow individual view to be 'flipped' (or rotated) to show its back side ? Found that UIScrollView is used for smooth scrolling and found the code for flipping UI. Outside of UISCrollView I got the flip to work using the code ...
I have an IPhone main view, myView, and I add a subview, mySubview. Now I activate in the mySubview drawRect method, a scale-up procedure, which expands both the bounds and the image in the subview by clocking some 40 frames, each scaled slightly bigger than the last. This way I get a set of expanding ripples.
Trouble is, even though ...
Hello,
In my iPhone app, I have a UIView inside the content view, and I have some controls inside the UIView. I've set the autosize properties for these controls in Interface Builder, but it seems that they're getting autosized relative to the whole content view, instead of relative to their superview. However, it specifically says in t...
I'm working on an iPhone app that uses Core Data. I have only one entity called Books, and that entity has the attributes Title, Author, ISBN, Description and Shelf.
I'm working on the book editing view, and want to have a UIPickerView listing all of the unique Shelf rows so that the user can just pick a shelf.
My question is -- how d...
I have a tab bar app. One of the controllers is a "preference page". What I am trying to do accomplish is access the uiswitch ivar that is on the "preference page" controller from the app delegate's applicationWillTerminate method, however I am only getting the default IUSwitch value.
Here is the code:
- (void)applicationWillTerminat...
I have a single UIView for drawing any one of a set of items. That is, my one UIView subclass can be told to draw a square, circle, or triangle for example.
I'd like to have a transition to flip that view so that the UIView draws a different shape at the half way point, so it looks like I'm transitioning to a different view, but really ...
Hi guys.
Is it possible to have an UIView with its bounds size different of its frame size?
I'm trying to create an UIView with "{{0,0},{320,367}}" frame and "{{0,15},{320,337}}" bounds but i can't get it done using setBounds() and setFrame().
I got from the doc that changing bounds or frame changes frame or bounds accordingly but i t...
I've created a UIView and can add things to it by using [self.topView addSubview:image]; Now I am importing a class to create a calendar which has a heap of buttons. I could put it in the same class and say [self.topView addSubview:button] but if its in another class how do I add it to the subview of the class that owns it? Hope that mak...
I'd like to animate the transition from a subview back to the super view.
I display the subview using:
[UIView beginAnimations:@"curlup" context:nil];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:.5];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
[self.view addSubview:...
Hello,
How to "clean" static int variables in a view class method? Every time a get back to this view I need those vars "zeroed". The [self.view removeFromSuperview];
instruction does not seem enough to free up memory from those vars.
Thank you. Have a great 2010!
These int vars are declared static in a view method. They are not globa...
In a seemingly never ending effort to learn more about iphone development, I have been playing around with some of the source code available through apples developer website. The particular example I am working with is Core Data Books, found here. The DetailViewController, and the AddViewController are made programatically, because there...
Is it wrong to use
viewController.view = newView;
instead of
[viewController.view addSubView:newView];
The first removes the additional level of the viewControllers automatically created view, and if I create newView like this
UIView *newView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
or like this
UI...