Questions tagged [addsubview]

Questions relating to the addSubView method of the Apple UIView class

Questions relating to the addSubView method of the Apple UIView class

540 questions
0
votes
3 answers

Adding a subview to another subview is not working

I am trying to add label (headerLabel) to another subview (introPadTutorial) here and it is not showing up on the screen. Can some please help me where am I making mistake? //Header file @property (nonatomic, retain) UIView…
Kishore
  • 3
  • 1
0
votes
3 answers

Adding a SubView does not display before pushViewController

Similar to this question: Adding subview, gets delayed? But I don't think you can pushViewController in a separate thread so is this really impossible? Here is what I'm trying to do: I have a TableView and when a cell is pressed, I want to call…
Evan Layman
  • 3,691
  • 9
  • 31
  • 48
0
votes
2 answers

viewcontroller release causes crashes or strange phenomenons

I have a very simple ViewController that contains the following: @interface ServingsView : UIViewController @property (retain, nonatomic) IBOutlet UILabel *labelTitle; @property (retain, nonatomic) IBOutlet UILabel *labelContent; @property (retain,…
donald
  • 489
  • 5
  • 13
0
votes
2 answers

adding UIView to view with a UIImageView parameter

I can't figure out what's wrong with this. I am trying to add a sub view to my current view. I alloc and initWithNibName my SecondViewController and set its myImageView parameter that is a UIImageView. The problem is that when the subView is added…
Lucas Pereira
  • 569
  • 1
  • 11
  • 23
0
votes
2 answers

How to add a new custom UIViewController in IOS

I'm a new guy in this field and i have a problem when i addSubView in AppDelegate i have a Custom Controller look like this: @interface mainViewController : UIViewController { UITabBarController *myTad; UITableView…
Max Ng
  • 162
  • 1
  • 2
  • 8
0
votes
2 answers

How to add multiple Views to UIScrollView

I have a ScrollView (contentScrollView) which should later contain 20 pages with a UIViewController for each page. Now this is what I get when adding the UIViewControllers view to the contentScrollView (the Button in the upper right corner is from…
ferdyyy
  • 515
  • 4
  • 16
0
votes
1 answer

How to send open uikeyboard back while opening other subview?

In my application I have one uiview. I am adding another subview to this view which contains one textfield. when user clicks that field then it display the keypad. This subview also contains one add and delete button. when user clicks on that…
iosdev1111
  • 1,048
  • 1
  • 13
  • 32
0
votes
4 answers

UIButton Added to a View's Subview Won't Respond

Been looking for this answer for a while with no luck. From Google to StackOverflow. The only answers I have found so far tell people to call initWithFrame in a view instead of just init. I replaced all my calls to init in UIViews with initWithFrame…
Andy Ibanez
  • 12,104
  • 9
  • 65
  • 100
0
votes
2 answers

UITableViewCell subview not being displayed when the table is first displayed

I am trying to add a strikethrough label to my table cells (conditional on a BOOL hasStrikethrough). The problem is that the strikethrough does not appear when the table is first displayed (even though hasStrikethrough == YES). If you scroll the…
Byron Cox
  • 349
  • 5
  • 17
0
votes
2 answers

Source of lag when adding/removing UIViews to UIScrollview?

Problem: Adding/removing subviews to/from a UIScrollView causes noticeable lag. Details: I have a UIScrollView (with paging enabled) that will contain a couple dozen 'pages'. The content size of this UIScrollview is the number of pages * the width…
John Carter
  • 6,752
  • 2
  • 32
  • 53
0
votes
3 answers

Container View Controller addSubview Exception

I'm building a Custom Container ViewController to house several instances of a nib. This nib holds a ViewController subclassed as DemoViewController During the viewWillAppear of the Container, I perform the following: - (void)…
Jonathan
  • 1,498
  • 2
  • 20
  • 41
0
votes
2 answers

How to redraw a view in coco-touch iOS?

I am programing under cocoatouch, using x-code. I add lots UIImageViews in a ViewDidLoad function by [self.view addSubview:test];. and if the information on web is changed, the UIImageViews on the UI should be replaced by other…
sxingfeng
  • 971
  • 4
  • 15
  • 32
0
votes
1 answer

Addsubview and dealloc for memory leaks (retainCount)

I am check the retainCount for the subview after add to the view. the code is : - (void) loadView{ //... toolbar = [[UIToolbar alloc] initWithFrame:nil]; [[self view] addSubView:toolbar]; } - (void) dealloc{ NSLog(@"count=%d",…
Golden
  • 139
  • 1
  • 1
  • 12
0
votes
1 answer

screen flash when addsubview by CATransition

Many people use this method to add animation on switching views. When I try to add animation effect on adding a subview, the view always flash once。 The reason is that the view add subview immediately at the beginning, after that, the animation…
Fannic
  • 99
  • 1
  • 6
0
votes
1 answer

How to add a subview using own delegate method?

As my Screen shot show that i have UIButton on SliderValueViewController.xib.i want that when i click on this UIButton it automatically addsubview (which name is detailview) in Secondview.xib.here is my code. in SliderValueViewController.h i…
jamil
  • 2,419
  • 3
  • 37
  • 64