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...
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:...
Hello,
How to programmatically add UITextField on UIView in iPhone programming?
UITextField* text;
UIView* view = [[UIView alloc]init];
[view addSubview:??????];
Thanks in Advance
...
-(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...
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...
Hi
On iPhone or iPad someone know how we can get a CGLayer (not a CALayer) from an UIView?
Regards
...
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...
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...
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...
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...
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...
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...
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...
Hello,
How can I loop through all subviews of a UIView, and their subviews and their subviews...
Thank you.
...
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...
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...
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...
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
...
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 ...
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...