subview Questions

2

Solved

I can't find the answer here anyway, nor do I see a duplicate question. My code is simple. Given 3 UIView, parent, from and to, remove from from parent and add subview. + add animation but that's ...
Avigation asked 19/6, 2011 at 12:10

3

I've a big problem with a scrollView. I have this code and when i press a button that is in the xib file of "registerView" then the app crashes: MainViewController.m: ViewDidLoad: UIScrollView* ...
Bezoar asked 12/5, 2014 at 9:31

3

I am building a custom progress bar (subclass of UIView). I add an UIImageView to the UIView that uses repeating images to display the progress. The view is added to the storyboard and I can get it...
Foreskin asked 13/5, 2013 at 5:53

2

Solved

I'm trying to display an entire pageContentView within a SubView on a rootViewController. I'm able to see the pageView but it doesn't auto-resize correctly to fit the SubView, it only shows a cutof...
Diplocardiac asked 6/9, 2014 at 0:41

3

Solved

I'm creating an UIView with a label inside AppDelegate and displaying it like this: [window addSubview:self.roundedCornerView]; Problem is when I rotate the device the view with label don't rot...
Chev asked 15/11, 2011 at 16:38

3

Solved

I have a my views and controllers set up like so. A Tab/Bar controller Within 1. is a root view controller within 2. is a programmatically created navigation controller, that is displayed as a su...

2

I'm learning Objective-C. I have a problem with new storyboard feature. I would initialize a subview inside a main view with xib. Without using storyboard, I could do it using: controller = [[U...
Withdrew asked 28/11, 2011 at 22:11

2

Solved

I would like to draw a triangle using CGRect instead of UIImageView and add it as subview to the right corner of some particular table cells similar to how it's done on the WWDC app. Any advice i...
Senghor asked 9/12, 2013 at 2:9

5

Inside the reusable view of my cell, I have a UIView. Then, I have this method in the controller - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath...
Steep asked 20/3, 2014 at 4:21

1

Is there a way to disable clipping of subviews of NSView? In UIView there is a “clip subviews checkbox” and the backing clipToBounds property, but I cant find anything similar in Cocoa. Here is my...
Senarmontite asked 21/8, 2012 at 18:55

3

Let's say I have a full-screen UIView that overlays the main screen when a button is touched, and then goes away when this overlayed view is touched. This UIView could either be added and removed f...
Howitzer asked 24/2, 2014 at 16:57

3

Solved

I have added UIButton and UITextView as subviews to my view programmatically. notesDescriptionView = [[UIView alloc]initWithFrame:CGRectMake(0,0,320,460)]; notesDescriptionView.backgroundColor = [...
Ayeshaayin asked 9/6, 2010 at 11:57

3

Solved

Is it possible to determine if the current UIView has a UIAlertView on display (other than setting a variable every time a UIAlertView is created). I'm thinking something along the lines of if...
Ionian asked 23/5, 2012 at 21:15

2

Solved

I add a view dynamically, but when it appears on the form, it's in the upper left hand corner. Where do I set the X and Y of the new subview?
Acentric asked 18/1, 2010 at 13:43

1

Solved

I come from an iOS background. For some reason, I cannot figure out how to add a view to another view. I have two ImageViews that I am creating programatically as follows: ImageView imageView; Im...
Erbium asked 28/10, 2013 at 19:30

2

Solved

I have UIView which have n number of subviews. Let say n as 600 subviews. I know there is a way to hide all the subviews by the following code for (UIView *subView in mainView.subviews) { subView...
Grady asked 17/10, 2013 at 18:40

4

Solved

Basically I want to remove all objects from a UIScrollView and I haven't yet found a solution to it because a simple "removeAllObjects" command doesn't work. Does anyone have an idea how to do it? ...
Recrudesce asked 12/7, 2010 at 19:5

1

Solved

I am using the iAd suite with storyboards from Apple, as per this link... Apple iAd Storyboard documentation It all works fine until I turn autolayout on. It builds fine but crashes on running. Th...
Cerebritis asked 25/8, 2013 at 13:56

1

Solved

When using autolayout, my understanding is that removing a subview ( while holding a reference to it of course), the removed subview still knows its autolayout constraints. However, when adding i...
Privily asked 21/6, 2013 at 6:12

1

Solved

I have a question about infinite paging in a ScrollView. In my app I have only 3 subviews in ScrollView. Each subview is loaded from xib file. Normally it looks like ABC in ScrollView. I wanted to ...
Inaction asked 28/5, 2013 at 9:35

1

Here is an example "GLKView Subview" app I wrote, based on the OpenGL Game sample project in Xcode 4.5. It creates a GLKView subview with its delegate set to the File Owner's GLKViewController, so ...
Quarters asked 27/4, 2013 at 22:28

3

Solved

I have a UIButton set up and hooked up to an action in my view controller as usual. Just this by itself works fine. Now, I have added the following to my view controller to set up a single tap: -...
Comfrey asked 10/1, 2011 at 3:42

4

Solved

I created UIImageView with the help of Interface Bulder. Now I want to place label inside it (as its subview). In code I can type something like: [myUIImageView addSubview:myUILabel]; But can I do ...
Indoiranian asked 10/3, 2010 at 9:0

1

Solved

I've made a project and implemented the folder project and now I've set up a subview which is displayed aboce the folder like on the picture. On the popup there's a image and I would like to do it ...
Work asked 8/12, 2012 at 1:56

2

Solved

I have set up a subview "popup" in my application and I want to show a navController if the user taps a button on the subview popup. I've set up the button so far, but if I tap the button the navig...
Encratia asked 8/12, 2012 at 12:18

© 2022 - 2024 — McMap. All rights reserved.