uiview

Personalized UIView created with Interface Builder

I need to project a personalized UIView with a UIImageView and 3 UILabel. I need to allocate more of this view because I want put it into a UIScrollView. I would avoid to generate the view programatically because it's difficult and boring design it. My idea is to create a new class that extends UIView and design it with interface builder...

iPhone - UIView Animation not looping correctly

Hey all, got a little problem here and can't figure out what I am doing wrong. I am trying to animate a UIView up and down repeatedly. When I start it, it goes down correctly and then back up but then immediately shoots to the "final" position of the animation. Code is as follows: UIImageView *guide = [[UIImageView alloc] initWithImage:...

Add UITextField on UIView programmatically

Hello, How to programmatically add UITextField on UIView in iPhone programming? UITextField* text; UIView* view = [[UIView alloc]init]; [view addSubview:??????]; Thanks in Advance ...

Core Animation question about swapping views

-(IBAction)buttonPressed1:(id)sender { SignView *tempVC = [[SignView alloc] initWithNibName:@"SignView" bundle:Nil]; [UIView beginAnimations:nil context:nil]; [UIView setAnimationTransition: UIViewAnimationTransitionCurlUp forView:self.view cache:YES]; [UIView setAnimationDelay:0.0f]; [UIView setAnimationDuration:0.2f]; [self presentMod...

how to have a sliding menu on the top of the page

hi, I am new to iphone programming. I was browsing through different apps at iTunes. Found this excellent menu. Can you folks help me to understand what is to be done technically to achieve this menu. The user can slide this menu from left to right or vice versa without disturbing the view in the bottom. how to achieve this ? Thanks in...

CGLayer from an IUView

Hi On iPhone or iPad someone know how we can get a CGLayer (not a CALayer) from an UIView? Regards ...

Changing UIView on orientation change

Hey all. I have a fairly simple question. I am developing a "rich" iPad app, and I have two background images specifically designed for landscape and portrait. I'd like this ImageView to automatically change depending on the devices orientation. (like pretty much all of Apples iPad apps). Can anyone point me in the right direction? I'm...

Replacing a UIImageView inside of an NSMutableArray - weird redrawing issue

I have an NSMutableArray of UIImageViews that have been added as subviews of a particular view. When I replace a view like this: UIImageView *tempview = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background.png"]]; tempview.frame = CGRectMake(0, 0, 667, 920); [drawViewController.drawImage replaceObjectAtIndex:0 withObject...

My Core Animation block isn't working like I'd expect

I have a UIView called activityView, which contains two subviews activityIndicator and cancelOperationsButton. These views are embedded in a XIB and wired up to my view controller. I have two methods that deal with activating (showing) and deactivating (hiding) these two subviews: - (void) enableActivityIndicator { [activityIndicat...

UIView drawRect: when you draw a line, the rect area will be clear so the previous drawing is gone

It is quite hard to tell so I upload an image to show my problem: http://i42.tinypic.com/2eezamo.jpg Basically in drawRect, I will draw the line from touchesMoved as finger touches and I will call "needsDisplayInRect" for redraw. But I found that the first line is done, the second line will clear the rect part, so some previouse drawing...

Navigation between more than two views without changing content in textfield

Hi, I've created 3 views in each i've one textfield in which i enter something and move from first to second and then to third and back to first but i want the same first page to be displayed with same content in textfield before navigating i.e. the meaning is that i want to swap between 3 views instead of creating views as how we remove...

Zooming to UIView and it's sub-views

Hi, I have a UIView which I can zoom to (as it is set as a subview of UIScrollView). UIView has UILabel, UITextField, etc. If I just zoom to the UIView, then of course label and text field get fuzzy (the same effect if you are zooming to the image file without changing image resolution). To solve the problem I need to increase the fo...

IPhone UIView:Is it possible to enable userinteraction only on subviews?

Hi guys, I created a viewcontroller that displays a button which is used to slide a view onto the screen. The idea is to place for instance three such viewcontrollers onscreen, resulting in three buttons at the bottom of the screen providing navigation. The viewcontrollers get stacked, so to the top one is now overlaying the other vie...

[IPHONE] How can I loop through all subviews of a UIView, and their subviews and their subviews...

Hello, How can I loop through all subviews of a UIView, and their subviews and their subviews... Thank you. ...

Why does Apple create its views this way

In the hope of fixing a bug of mine from another post i would like to know why apple writes this (for it's Elements example) UIView *localContainerView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; self.containerView = localContainerView; [localContainerView release]; instead of the simpler method: contai...

UIView Horizontal scroll for a part of a screen

Hi Friends, I have a requirement for scrolling a part of a view horizontally. there are 2 views, mainView(0,70,320*2,400) and a horizontalView(0,0,320*2,160)[this horizontalView has an internal UIScrollView with the same frame] So the horizontal view will occupy the first section of the screen and it should only be scrollable horizont...

iPhone Tab Bar App With Registration View

Hi! I'm a relative newbie on iPhone app development but have successfully created a tab bar app with 4 tab bar items. I would like to have a one-off registration page for users to key-in information when they open the application for the first time. The registration page should load before the view with the selection of tab bar items loa...

name of UIView that was touched

Hi, How can I get the name of the [touch view] in the touchesbegan event. So if it were UIView *aaaaaview I would get aaaaaview as the return; Thank You, nonono ...

How to create a smooth CATransition effect

The CATransition what i have implemented works really fine but not smooth, i could see the previous uiview screens during the transition, I am just doing this, CATransition *animation = [CATransition animation]; [animation setDuration:0.1]; [animation setType:kCATransitionPush]; [animation setSubtype:kCATransitionFromRight]; [animation ...

Is there a way to disable a UITabBarItem from reloading its first view?

Hi All, I currently have an app that is a tab bar style app and supports rotation. Everything is great until you hit the tab bar when the device is in landscape and the original view is reloaded and placed back on screen. There is a lot of space and the overall appearance doesnt look good. Is there a way to disable this tab bar item fro...