Questions tagged [superview]

137 questions
1
vote
1 answer

Accessing superview ScrollView?

i added some views (every view has its own viewcontroller and nib) to an UIScrollView. How can I access the ScrollView from within the UIViews I've added? self.view.superview doesn't get me the UIScrollView properties. I need to disable…
trnc
  • 20,581
  • 21
  • 60
  • 98
1
vote
1 answer

Self-deallocating by calling removeFromSuperview on itself?

Would calling removeFromSuperview in a customized UIView as [self removeFromSuperview] correctly remove itself from its super view just like doing [self.customView removeFromSuperview] in its super view? I've checked and it does seem to do the same…
durazno
  • 559
  • 2
  • 7
  • 25
1
vote
2 answers

Segmented Control and its superview exist

How to protect this method by checking to see if the segmentedControl and its superview exist before setting the frame? - (void)setSegmentedControlFrame { self.segmentedControl.frame =…
dicle
  • 1,122
  • 1
  • 12
  • 40
1
vote
2 answers

Remove subview on viewdisappear add again when appear - not working- ios sdk

I am working with the application and want to remove table view when view disappear and want to add that same table view when view appear. Currently From A ctr(push) -> B ctr From B ctr(push) -> C ctr -- I removed tableview in B ctr from…
Satish
  • 1,012
  • 2
  • 15
  • 32
1
vote
1 answer

getting UIView in separate class for FXBlurView

I am using FXBlurView but I am receiving a weird black line at the top when animating the blurView down. I have a UITable that is 3/4 up the ViewController and an image that is the rest. What is happening Is that it is only picking up the UITable…
maxisme
  • 3,974
  • 9
  • 47
  • 97
1
vote
1 answer

Using navigation controller of superview

I've made a custom view to which I add a custom button. This custom view goes as a subview to yet another view (Kal calendar for iphone) that I push into a navigation controller. Now the button in my custom view is connected to an IBAction in which…
msk
  • 527
  • 4
  • 7
  • 19
1
vote
2 answers

Ignore gestures on parent view

I recently came across an issue where I had a superview that needed to be swipable and a subview that also needed to be swipable. The interaction was that the subview should be the only one swiped if the swipe occurred within its bounds. If the…
DrDisc
  • 281
  • 4
  • 12
1
vote
0 answers

Animate Button frame along with superview animation

I have a View in which there are 3 buttons as subview. the view rotates 360 degree, so as the button rotates the problem is when i click the button, as the frame of a button does not changes the position so it fires the wrong touch…
TasZ
  • 167
  • 11
1
vote
1 answer

Reset to the first view ios application

I have an app such that it has a authentication screen as its first view. if authentication is successful, a tabbarcontroller is loaded. All views in the tab bar require the user to enter a pin code. What I need to do is that when the user enters…
Hassan Zaheer
  • 1,361
  • 2
  • 20
  • 34
1
vote
1 answer

ios create 'readmore'. Let superview be dependent of subview

gaaah designing in ios gives me headache!! So please, help me out and maby explain to me how one should think trying to come up with the solution. I have: As you can see the UITextField has its frame being set in storyboard to be smaller than its…
Pedroinpeace
  • 1,419
  • 1
  • 14
  • 20
1
vote
1 answer

View added to superview disappearing when navigating tableview

I have a tableView that navigates to a detail view when the user selects one of the tableView cells. This main TableView is created in a UITableViewController class. (MasterViewController) I used StoryBoard to create the master-detail…
T Davey
  • 1,617
  • 1
  • 13
  • 14
1
vote
1 answer

Displaying a subview when transitioning its container

When transitioning from one view controller to another, is it possible to animate a subview in the current container such that it stays on top for a brief moment and then it gets placed onto the new container after the transition is complete. To…
Santhos Ramalingam
  • 1,188
  • 10
  • 11
1
vote
2 answers

Subview access to superview

I have a scrollView with its content view and finally a subview on the content view. I would like to stop scrolling [scrollView scrollEnabled:NO] from the subview. Can I get at the method?
user1410595
  • 71
  • 1
  • 6
1
vote
1 answer

Forcing a layout position and size in iOS Superviews

I've got a massive problem and I really hope you can help me here... I'm very lost at the moment :( I've got a project that runs with a MainWindow.xib. In my app delegate file I check the orientation of the device and load an appropriate NIB file…
justinhartman
  • 682
  • 7
  • 20
0
votes
2 answers

How do I loop multiple view controllers for an IOS iphone app?

I have a app with a main viewcontroller that loads a "first page" viewcontroller. once the user has clicked a few buttons, I exchange the "first page: view controller for the second this way: [UIView transitionFromView:self.view…
Beleg
  • 362
  • 2
  • 23