Hi,
I am attempting to create a transition between two subviews (view1 and view2). When a button is pressed I want view1 (front) to flip and show view2 (back). I have tried both transitionFromView and transitionWithView. Each works - but each has a problem.
transitionFromView - flips the superview (the whole window view flips, not the...
i want to know which view controller is on top of screen at a particular time so that i can control that views...
i have a 2 buttons on my bottom navigation bar,and one of these buttons pressed i should have to load particular view and and these buttons will appear in all views ...
i am pushing visit view whenever i press visit button ...
Hey everyone,
I have a UIView in a UIViewController to which I add a custom subview in the viewDidAppear method.
MyView *myView = [[MyView alloc] initWithLabelText:text];
[self.view addSubview:myView];
[myView release];
The text variable is a string used on a label in myView. This text changes every time you come back to the current ...
Shouldn't there be a way to resize the frame of a UIView after you've added subviews so that the frame is the size needed to enclose all the subviews? If your subviews are added dynamically how can you determine what size the frame of the container view needs to be? This doesn't work:
[myView sizeToFit];
...
I have a somewhat complex iOS view hierarchy. One piece of text is an editable UITextField. When the user touches it, it becomes first responder, and is editable.
Here's the rub, though: Best practice should be that a touch anywhere outside the edit control causes it to resign first responder and end editing. What's the best way of acco...
Hi there,
My application is for iPad.
I have a UIViewController as the main view of my application.
I have an UIView at the bottom as a footer, and inside 3 UIView (subviews).
My 3 subviews in the footer banner load for each a different UIViewController and display the view of this controller into their view.
I would like when I clic...
I have a UIScrollView subclass that I am programmatically scrolling using UIView animations.
I'd like the user to be able to tap or zoom into the UIImageView content of the Scroll View while the animation is taking place.
This has worked fine while using a formulation akin to this:
- (void) scrollSmoothlyatPixelsPerSecond:(float)thePi...
Hi all,
My app focuses around the UIPicker. I have three components each with a phrase or a long piece of text. Is it possible to change the width of the picker when the user scrolls the picker (to see the whole phrase)? It would also be nice to have it animated too.
Any input is greatly appreciated
...
Hello. I have a view being displayed modally and, before I display it, I set it's background color to transparent...
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
MyViewController_iPhone *myVC = [[MyViewController_iPhone alloc] initWithNibName:@"MyView" bundle:nil];
[myVC.view setBackgroundColor:[UIColor co...
guys i want to set different subview in every section, i put my different view into NSMutableArray, so i hope i can access it depend on indexPath.section, this is my code :
for (int i =0; i<promoCount; i++) {
self.textView.text= [NSString stringWithFormat:@"text view :%d",i];
[self.arrayPromotions addObject:self.textView];
}
-...
I've a table view filled with data and I want to render the same view to an A4 PDF document.
...
Hi,
I am planning to write a custom view that will render some stuff using Quartz.
After looking into some sample code in apple site, I decided to subclassing UIView to create my own view:
@interface myView : UIView {
}
@end
Now my question is, what would be the best way t bind my view with the viewController?
While loading from NIB...
Wondering if anyone has written or come across a good way to log to the console the view that a touch occurred in. I know touchesEnded: can be implemented, but my problem is that something mysterious is blocking touches on my views and I don't know what it is. I would just like to know what is intercepting the touches.
I would like to l...
hi everybody. in my app all my controls are created in code. i have not used IB for controls. now i want to rotate the view to landscape mode. i know i have to use the shouldAutorotate method for this purpose. but since i have not used IB, how can i resize the controls when they are in landscape mode? how can i position them correctly us...
hey!
is there a possibility to determine if an uiview obj is going to be displayed. imagine: you have 2 uiviews in an uiscrollview. now you are going to switch per gesture from the first view to the second. the first view now is NOT in the viewport. now you are going to go back to the first view. and now I want to be notified that this ...
I have the following code to draw a custom picker. Unfortunately when the view is first drawn is black. Only when I touch it does it appear.
How can I fix this?
Here is the relevant code in the UIView:
- (void)drawRect:(CGRect)rect
{
[self createPicker];
[self addSubview:dPicker];
//[dPicker reloadComponent:1];
}
-(void) cr...
I'm pulling together a few utility methods for testing and I'd like to be able to pop up a view from within an arbitrary method - one that doesn't necessarily know about any UIViewControllers or windows. Is this possible?
For example I'm preparing a custom location manager shim so that I can manually inject location data when I'm testin...
Hi
In my iPhone app, the user will be making multiple NSStrings. Once these are made, I need to pass them to another view completely in the app. How can i do this? All I know at the moment os I can't access objects or variables declared in one view, in another. Thanks.
...
I'm trying to get a view that is similar to the the application detail view presented in the app store but I can't figure out how it is implemented. It looks like a UITableView with 3 or 4 custom cells. Does that sound right? Any insight would be great.
Thanks.
...
I'm implementing a subclass of UIView that displays a gauge dial with a sprite for the indicator. It has angle property that I can vary to make the needle point to different angles. It works, but on the same values for the position of the needle make it show up in different locations on the phone and the simulator. It's an iPhone 4, s...