Hi all,
I want to make a rectangle Boundary and to insert a UITextView and two buttons in that rectangle .If i making the rectangle by adding a subView in a from UIView class than I am unable to interact with the controls in the rectangle area which i inserted in the subview from Interface builder.
I am attaching a screen for that
h...
I tried to add a animation to viewDidLoad and viewDidAppear, but it doesn't work:
- (void)viewDidAppear:(BOOL)animated{
[UIView beginAnimations:@"transition" context:NULL];
[UIView setAnimationTransition:110 forView:self.view cache:YES];
[UIView commitAnimations];
}
Why?
...
Hello all,
I am working with a iPhone application in which I am displaying images in a scroll view.
The "Gallery" feature is working nicely but In an exceptional condition I want the view locked untill I get the images loaded .
So the question is how can I disable the view and show it slightly blurred while I am fetching the images .
...
i'm programmatically adding a couple UIButtons to my view. After clicking one of the buttons they all should be 'removeFromSuperView' or released, not just one.
for (int p=0; p<[array count]; p++) {
button = [[UIButton alloc] initWithFrame:CGRectMake(100,100,44,44)];
button.tag = p;
[button setBackgroundImage:[UIImage...
I know what a UIView is but not a UIViewController. I just want to know what I could use it for, and what it is compared to a UIView
...
I am developing a puzzle game for the iPhone using core graphics implementing drawrect in a single UIView.
I would like to add a menu which is opened from a UIButton event handler.
I am not sure if I should do this via code e.g. have a menuopen flag and adjust the drawing routines and tap event handlers (manual implementation) or to go...
Hello there,
In my current iPhone game project I am using UIView that are some game play elements (they are tiles). Animating one by one is working well, or in a small series (5 UIView animating at the same time).
But once I decided to animate those same UIView more massively together I am starting to get some weird rendering issue (t...
I am trying to graph large amounts of data in a UIView as a subview of a UIScrollView. In order to overcome the memory limitations surrounding enormous UIViews, I plan, once the scrollview's offset has reached the maximum or minimum offset, to redraw the view with the new data either with a lesser "x" value if it has reached minimum, or...
Why can't i just set self.mySubView = anoterhView; like one can set self.view = anotherView; ?
## .h
@interface TestController : UIViewController {
IBOutlet UIView *mySubView;
}
@property (nonatomic, retain) IBOutlet UIView *mySubView;
##.m
@implements TestController
@synthesize mySubView;
- (void)viewDidLoad {
AnotherCon...
I have a UITableView, to which I add a Header-View, designed in InterfaceBuilder. This Header-View has two UILabels. The first label takes a title, that is always present. The second one displays a description, if present. Both strings can be quite long.
Is there a way to extend or shrink this labels and the view so that the text is sho...
I am developing an iPhone app that places multiple custom UIViews as subviews in a UIScrollView. The subviews are placed on top of each other as transparent views as each view has its own drawing routines that traces parts of the base view. The base view is a UIImageView that is typically a large image that I want the user to be able t...
I'm working on an iPhone app where I'm using a navigation controller (UINavigationController) to navigate through the various child views, and I would like to add a uiview to either the main window or the navigation controller, as a footer overlay that shows up on top of all the child views. I've tried this through interface builder, an...
Without using Interface builder or xib files, what is the correct way to instantiate two classes which inherit from UIView such that they can switch between themselves using UIButtons located on the views themselves?
I think this involves setting up a UIViewController from the app delegate and adding two instances of my classes which im...
Hi,
I have a custom UIview which is created diagrammatically. How to associate to it a custom UIViewController (diagrammatically as well)
Thanks and regards,
...
I am wondering how my iPhone app can take a screen shot of a specific UIView as a UIImage.
I tried this code but all I get is a blank image.
UIGraphicsBeginImageContext(CGSizeMake(320,480));
CGContextRef context = UIGraphicsGetCurrentContext();
[myUIView.layer drawInContext:context];
UIImage *screenShot = UIGraphicsGetImageFromCurrentI...
Many of the table searches I see actually dim (change alpha?) of the actual tableView when the search bar gets focused. I am trying to implement this.
When I overload
- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar
I am trying to do something like
self.tableView.alpha = .5f
But it is changing the alpha of the actu...
I have a UIView which I create programmatically roughly like so:
@implementation SlideShowView
- (id)initWithImages
{
…
if (self=[super initWithFrame:CGRectMake(0, 0, 320, 480)])
{
// init objects here
}
return self;
}
- (void)dealloc
{
printf("dealloc slide show view\n");
[[NSNotificationCenter defau...
I would like to be able to display a video on the iphone screen - preferably in a view so that I can control its display coordinates. I want to be able to load the view and overlap and partially overlap a subview ... is any of this feasible? I have read that mpmovieplayer is the only method for video display (and is full screen)? Any...
Hello. I had thought I actually had a pretty good handle on the whole view controller model, but something just doesn't seem to making much sense for me. My main issue is with adding a custom UIView subclass as a property of a UIViewController subclass.
Whenever I assign a valid instance of a UIView subclass to that property, nothing h...
EDIT: I had set the overlay view to 460px high, not 480.
New question:
How do you remove a subview loaded to another window/view?
...