uiview

UIView setBounds UIScrollView hell!!

I have a bunch of 'rowviews' that I want to put in a vertical scroll view. I have created this rowView view as a separate nib in IB. They are sized at 1024/200 (ipad). Now I want to put them one by one in my parent UIScrollView. I tried a simple [vScroll addSubview:rowView] but this puts them overtop of eachother (I made the rowview tran...

UIButton resize with animation

I'm creating a menu and I want the buttons to "pop" I guess on the screen. Basically I want to start at 0px dimensions and then go up to the full size of the buttons. I can animate the alpha and the position if I want to but can't do the dimensions and I think its because its an image on the button. If I do a UIButtonTypeRoundRect you c...

How do I add a background tint to the outside of the UISearchDisplayController table view?

In my view controller, when I instantiate my UISearchDisplayController object, I set its various properties, including the background color of the searchResultsTableView property: self.searchDisplayController = [[[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self] autorelease]; searchDisplayController....

UIView (subview) does not send IBActions to AppDelegate.

I'm having this problem because I originially made everything in the main NIB, but then after reading learned that it is better to use subviews. I've got my IBActions in the AppDelegate, and I've successfully connected and loaded my subviews. However, when I try to connect my buttons in the subviews to the IBActions in the AppDelegate,...

LayoutSubviews for Custom UITableViewCell and UIView

I have a custom UITableViewCell. It has a UIView which is added to the "contentView" of the UITableViewCell. For any update, I'm redrawing that UIView by calling its "setNeedsDisplay" and implementing drawing inside "drawRect" method of the UIView. The UITableViewCell overrides "willTransitionToState" and according to the bit mask value...

Drag-n-Drop from UIPopoverController to other UIView

How would I go about implementing dragging and dropping a UIView from UIPopoverController into the back UIView. This is the functionality that Pages provide in their insert media popover, where you can drag a shape out from the UIPopoverController and drop it into the main document. I am actually confused with the pan UIGestureRecogniz...

Adding UIView to UITextField

Hi, I am trying to use a custom iPhone control called Kal, which displays a calendar, and I want to modify it. Kal programatically sets a table view as follows: tableView = [[UITableView alloc] initWithFrame:fullWidthAutomaticLayoutFrame style:UITableViewStylePlain]; tableView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIVie...

How to auto-resize UIView proportionally?

I have a UIView whose height should always be exactly 1.5 times the width. When the view is auto-resized (in this case, because the iPhone is rotated), this proportion gets messed up. How can I make sure the height/width ratio doesn't change as the view resizes? ...

iPhone - ABTableViewCell and animations

Hi, I'm using a ABTableViewCell subclass ( http://github.com/enormego/ABTableViewCell ) as cells of a UITableView. This improves scrolling smoothness a lot as cells have many elements including pictures, but I can't find how to create animations for a single element of a cell. For example, when a image is loaded from the web, I'd like ...

Modifying/Animating a UISplitView on iPad - Navbar issues

I am creating an iPad application using a UISplitView. I used the default template for that type of application in Xcode. The UISplitView has a left pane (menu or list) and a right pane (detail or content view) in it. Each has a navigation bar at the top of the view. What I want to do is move (with animation) both views to the left so t...

adding navigation effect to view based application?

Hi I have created View based application, here i need to navigate between views when button pressed. so in first view controller i have created action for button pressed. -(IBAction)loadSecondView:(id)sender { SecondView *sView = [[SecondView alloc]initWithNibName:@"SecondView" bundle:nil]; [self.navigationController pushView...

How to query subview of UIView with tag ?

i insert 2 UIImageView with tag 1 and 100 to UIView, how to access to UIView and check how many subview on it or select tag 1 to be the top of view ? ...

Relation between UIView and UIImageView regarding animations... iPhone SDK

I have some animation blocks in my code which are causing my problems when I upgrade to iPhone OS4. I have read that it is now advised to use block-animations so I thought I would see if this solved my problems. Before I was using the following type of code to make an animation... [UIImageView beginAnimations:nil context:NULL]; [UIIma...

Problem in creating image of UIView

Hi guy, I want to create an UIImage of UIWebView and then I want to draw that image. Here is my code: UIView *tempView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 768, 1004)]; tempView.backgroundColor = [UIColor blueColor]; UIGraphicsBeginImageContext(tempView.bounds.size); [tempView drawRect:tempView.bounds]; UIIm...

Table View header hiding like search bar

How would I go about letting a table view's header view scroll in and out of bounds even when the table's overall content size is not larger than the bounds. As an example in the Mail.app even in views with no messages you can still scroll the search bar in and out of view (with no scroll bar I should add). How can I get this functionali...

UISplitViewController detailView

I have an UISplitViewController base project. I want to have a different detail View depending the orientation of the app. Exemple : In landscape when I select a row in the TableView, I want the detailView to be an UIWebView. But in portrait I want the detail view to be a complex custom view. Is it possible ? Thanks. ...

Draw a rounded UIView with gradient and drop shadow

Hi ! I have been working on a custom control that is a rounded rectangle button, filled with a linear gradient, and having a drop shadow. I have filled the two first steps using this answer : link text My problem is now to add a drop shadow under the resulting shape. Actually, the context has been clipped to the rounded rect path, so w...

Changing background images of UIView.

I have a class : @interface UIExView : UIView { ....... } In another class, UIExView is defined as following: IBOutlet UIExView* exView; exView is connected to an View in XIB. I set background image of exView as: UIColor* bgrColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed: backgroundImageName]]; exView.backgroundCo...

How do I get a subView to completely cover the screen?

Here's my first view: When I call [self.view addSubview:theSubviewController.view]; I get this: See how it does not completely cover the first view? The UI controls respond to clicks on the left half of the screen where the view background is, but they do not on the right side of the screen. In the view controller, I have enabled s...

How do I go about saving a portion of the graphical context without disturbing the user?

Hello experts! My situation is like this, I want to programmatically take a print screen of the current view visible to the user and save this to the photo album. The problem is that I don't want all of the views in the hierarchy to be visible. My plan was to: Make a copy of the view hierarchy. Hide the subviews which were not inte...