uiview

Parent UIScrollView detecting child UIView's touches

Basically... I have a UIScrollView subclass which you can add a target and selector too, which get fired if a touch event is detected within the view. I am using the scroll view as an image gallery, and the touch inside the scroll view is used to fade out the HUD components (UItoolBar, etc): @implementation TouchableScrollView - (voi...

I see a gap at the bottom of the subview

Basically the second view should go 20px from the top I see a gap at the bottom of the subview, I can see the bottom of the first view Link to screen shot Is there some way I can set margins or boundaries so the view can go 20px down ...

Swipe to Delete not working

Hi, The swipe to delete functionality is not working in my table view. I have implemented the commitEditingStyle delegate and the Edit button in the navigation bar. Hence when the user clicks the edit button, the delete and add buttons show up appropriately. However, on swiping, the delete button does not appear and it seems like it doe...

Swipe to change UIViewContent

Hej folks, I got an UIView in my application and want to implement kind of a swipe gesture. I know how I detect this gesture (touchesBegan: and touchesEnded: for example is x coordinates are distanced more than 100 pixels or something else) but I really don´t now how to animate my needs. In fact my UIView will contain subviews which are...

UIView and AutoresizingMask ignored

Hi folks. First time posting on stack overflow. I've spent hours scouring over many Google searches and have, at this point, practically memorized the UIView and UIViewController class reference docs. No matter what I do, my app is ignoring my efforts to resize my views on orientation change (or any other frame size modifications for th...

addsubview gives wrong output?

hi , i am using following code , but subview is added below the the parentview not ON parent view(self.view)..any help please? -(IBAction)okbutton:(id)sender { obj = [[imgViewNextController alloc] initWithNibName:@"green" bundle:nil]; obj.view.frame = self.view.frame; [UIView beginAnimations:@"curldown" co...

Animating UIView frame movement in animationDidStop

I have a UIView which i animate the movement of it's frame. However, now, i want to change the alpha value so its fades out as it moves... The alpha needs changing back at the end of the animation. My first thought was to use an animationDidStop Selector but, this View is only in scope where the animation block is... i.e. in the Stop sel...

Rotate UIView using UITouch

I have a question on how I should approach rotating a UIView with touch based events. Quite simply, I want to rotate a UIView around an anchorpoint, depending on where I touch on and off within that view. Imagine a volume knob on a hifi, which you turn with one finger. I've built a rotation method using CAKeyframeAnimation which carrie...

How to call a method in a sub UIView?

hi, i have a uiviewcontroller named MainViewController, i add a subview in it (name:DetailView) in viewdidload event. when i press the a button in mainviewController i want to call a method in subview, writeSomething. //DetailView is a subclass of a UIView. in Mainviewcontroller: - (void)viewDidLoad { [super viewDidLoad]; ...

How can I get a full-sized UINavigationBar titleView

I am trying to add a custom control as the titleView in a UINavigationBar. When I do so, despite setting the frame and the properties that would normally assume full width, I get this: The bright blue can be ignored as it is where I am hiding my custom control. The issue is the narrow strips of navbar at the ends of the bar. How can ...

how can i reload (or) refresh the uiview?

HI, I'm very new to iphone development.I'm doing one application in that app having more than one uiview.one uiview having uislider and uilabel.uislider is used to show the song timings and uilabel is used to shows the song count.while the timer shows(-0.00)that is the slider reach the end next song is correctly played but,the uilabel n...

(UIView *)hitTest problem?

Hi, I have one Masterview.it has lot of childviews.I am using the following code to detect the touched view and to bring front the corresponding view.the code works fine.But When I add subview to childview,it did not work , any help please? - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event; { self.hitView = nil; self.h...

How can I display a view controller modally, using the parent's navigation controller?

I'm implementing a UITabBar in the middle of my navigation stack without UITabBarController. The UITabBar is in the DetailViewController which delegate a portion of the screen to the view controller associated with the selected tab element. Inside one of view controller's thats displayed via tab bar selection, there's a UIButton which...

When should I use a UIViewController in IOS Programming?

I've been looking at the API for IOS Programming, and have been reading about view controllers and UIViews. It looks like UIViewController subclasses are really useful for Modal navigation and custom animation, but I can't see any other uses than that. What is the benefit to using a UIViewController subclasses rather than a normal NSObj...

UIView Orientation change programmatically

i have uiview with a uiviewtablecontroller added as subview, my device starts in landscape mode but tableviewcontroller is always in the portrait mode ...

bringSubviewToFront problem?

HI, I have Parentview-->Multiple childviews. when i use [self bringSubviewToFront:childview] in parentview, it works fine.but after adding grandchildview to childview,when i use [self bringSubviewToFront: grandchildview] in parentview, it did not work?any help please? ...

Consuming Multiple Webservices at once

Hi All, I´ve been checking Kayak.com and many other comparison websites were they create on demand queries to multiple web services in order to display best results. I was wondering which is the best strategy to consume multiple web services at once like these website do. thank you so much. sebastian. ...

Last UIView in navigation based app is shown on startup

Hello there, strange things happen in my iPhone app. Since a not defined point in time when I start my navigation based app (it doesn't matter if in simulator or on the device) the last UIView (the one that the user reaches last) is shown on startup. After the app is loaded it switches automatically to the RootViewController's view. It'...

How to change UIView size in Interface Builder

In Interface Builder when I look at the size inspector for the view, it's showing 320x416 and it's grayed out so I can't change it. How can this be made editable? ...

On clicks the button to change the view in iPhone?

Hi friends, In my apps, i have one tableview with footer view. In footer view, i have created one button. On clicks the footer view button, the next 10 details are parsing and displayed in the table view. I have used one temporary view for displaying when clicks the next button in the footer view. The temporary view is displayed only, p...