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
4
votes
1 answer

addSubview: method horribly slow

I am trying to initialize a ViewController from another. Here is the code written in my first ViewController: MediasViewController.h #import "MediasVideosViewController.h" @interface MediasViewController : UIViewController { …
Pierre Espenan
  • 3,892
  • 5
  • 31
  • 51
4
votes
1 answer

Cannot see Buttons in UIScrollView

I was making a list in the form of scrollview in swift where the view consists of various types such as labels, button etc. However when i added the button to the subview, they were not displayed although all other labels etc were displayed. I also…
vgvishesh23113
  • 301
  • 2
  • 11
4
votes
2 answers

How can I add a view from subviews on top of its superview?

I have a mainViewController and inside its nib file I added an info button, in which action is to flip between two subviews, subview A and subview B. From mainViewController, under viewDidLoad, I'm inserting subview A. Here I notice that the info…
Ole Media
  • 1,624
  • 9
  • 25
  • 36
4
votes
2 answers

How to add UIView on top of UITableView

I have a table in my viewController class On tapping of a button (this button is outside of table), i wanted to show some UIView on top of tableView alone and a web service request is sent. After receiving the response, i want to remove the UIView…
Stephen
  • 2,789
  • 4
  • 15
  • 27
4
votes
1 answer

When changing UIWindow subviews, orientation is not set

If a view is added to the window, orientation is set as portrait even if the device is in landscape. If the view is added in the app delegate, application:didFinishLaunchingWithOptions: method, then it works correctly. But if the view is added later…
David
  • 2,585
  • 5
  • 32
  • 43
4
votes
4 answers

Continuously change value of UILabel on thumb image of UISlider

I have a UISlider(min 1 ,max 10). I want its thumb to have a UILabel placed on top of it that continuously updates and changes its text on moving the UISlider's thumb. So, I grabbed thumb image from the UISlider and added a UILabel to it but the…
motox
  • 739
  • 10
  • 16
4
votes
1 answer

Poor memory management performance for images on ios devices

I have the following issue: I have a primary view object (that inherits from UIView) that displays a grid of 16 squares (each is a class I created that inherits from UIImageView), in a 4x4 layout. Each of these 16 squares is 160x160, and contains an…
4
votes
2 answers

Can't see dynamic subview on iOS7(Working on iOS6)

I have a custom TableViewCell. In the cell, I add two cross icons (using unicode) to both sides of the cell. when the user pans the cell, it will display the cross icon on the side. - (id)initWithStyle:(UITableViewCellStyle)style…
Jake Lin
  • 9,820
  • 6
  • 26
  • 38
4
votes
2 answers

UIButton not Working when the UIview is presented by addsubView

I have added another view controller to a viewcontroller view , addsubview works fine, but the button actions in next view are not working. crashes with an error [ModelViewController performSelector:withObject:withObject:]: message sent to…
4
votes
2 answers

UIView subviews' order?

If i use a for loop; for(UIView *subview in [myView subviews]) in which order, subviews are brought? According to their added order or something else?
erdemgc
  • 1,577
  • 3
  • 22
  • 37
3
votes
2 answers

viewWithTag and addSubview

I am trying to reuse the label by making a call to viewWithTag when I press the UIButton. The code looks ok when it is executed the first time, but is it leaking on executing it multiple times due to line 7? Also is it just better to remove the…
apy
  • 67
  • 2
  • 6
3
votes
5 answers

window addSubview release problem

I was wondering something about the app delegate of my app. Why can't I release like this : -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { RootViewController *controller =…
Pierre
  • 6,557
  • 5
  • 48
  • 78
3
votes
5 answers

iPhone: Adding subviews to Cell ContentView overwrites cell texts on scrolling

I have used Cell.ContentView in my implementation for customizing the cell contents. It works fine but the only problem is when I have many cells and I scroll them up and down, the cell contents gets overwritten into the cells just become hidden…
AlienMonkeyCoder
  • 7,314
  • 11
  • 69
  • 138
3
votes
3 answers

Adding a UIActivityIndicator to a modal view (ELCimagepicker)

I've added the ELCimagepicker (https://github.com/Fingertips/ELCImagePickerController) to my project and it works perfectly, allowing the user to select multiple images for a slideshow. But when you click 'Save', there can be a lengthy delay…
3
votes
1 answer

iOS 11 - Crash on adding subview inside VKSideMenu

I have been using the VKSideMenu library for implementing slide menu. I have a created a button click for animating the same. The code was working perfectly before iOS 11 but since when I updated my iPhone to iOS11 the app gets crashed whenever I…
softdev
  • 850
  • 7
  • 24
1 2
3
35 36