Saturday, 15 August 2015

ios - Moving view but keeping imageview in fixed position -



ios - Moving view but keeping imageview in fixed position -

i'm moving uiview swipe, want imageview within uiview remain in position. got working placing imageview under separate uiview ( needed include label under imageview) doing [self.view insertsubview:self.imageviewholder abovesubview:self.panedview];. problem when swipe downwards on imageview, view swiped won't come downwards unless swipe around imageview. because uigesturerecognizer associated view under imageview. simple ways around this?

gesture recognizer code:

uiswipegesturerecognizer * swipeuprec = [[uiswipegesturerecognizer alloc] initwithtarget:self action:@selector(handleupswipe:)]; [self.panedview addgesturerecognizer:swipeuprec]; [self.imageviewholder addgesturerecognizer:swipeuprec];

ios cocoa-touch

No comments:

Post a Comment