Questions tagged [viewdidappear]

UIViewController instance method that notifies the view controller that its view was added to a view hierarchy.

261 questions
0
votes
1 answer

How to differentiate when viewDidAppear is called

Is there a built-in way (rather than using my own flags) to differentiate when viewDidAppear is called because the view controller was pushed to the navigation stack, rather than when a modal disappears? In other words, I need to execute code when…
Jonas Stawski
  • 6,682
  • 6
  • 61
  • 106
0
votes
1 answer

How to call a custom made button programmatically - ios

I've made a custom button programmatically in - (void)viewDidLoad However I need to call one of its methods in -(void) viewDidAppear:(BOOL)animated I need to call [self.custom setHidden:YES] Is the buttons scope only in viewDidLoad?
user2366782
0
votes
1 answer

instance variable returning null in viewDidAppear but fine in viewDidLoad

For some reason my instance variable (in my viewcontroller) is returning null in viewDidAppear but its returning the correct value in viewDidLoad.. - (void)viewDidLoad { [super viewDidLoad]; NSLog(@"viewDidLoad:…
Parampal Pooni
  • 2,958
  • 8
  • 34
  • 40
0
votes
1 answer

Using the UIView-Glow category on UITableViewCell

I'm using the UIView-Glow category trying to highlight certain UITableViewCells. But it doesn't work if it's used in tableView:cellForRowAtIndexPath:. I guess it must be used after the certain view appeared on the screen. So, is there a possibility…
Norbert
  • 4,239
  • 7
  • 37
  • 59
0
votes
1 answer

UIScrollView isn't working with Auto-layout and Segue

in the ViewController (principal), i have a UiSrcollView called scroller. It works well when i start the app. But, if i use a segue (to pass to another view controller) the uiscrollview stop to works when i return to the principal. ps.: I using the…
0
votes
0 answers

UITableView datasource methods get called only once

My cellForRowAtIndexPath doesn't get updated after i return from a detail view controller. HomeViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view from its nib. self.title …
vin
  • 1,258
  • 5
  • 20
  • 33
0
votes
2 answers

iOS: Updating text labels with NSUserDefault data on different views

I have a text label on view 1 and a button. If I click the button, I am brought to view 2 through a modal connection. In this view, I enter a number and press a button. The button saves the number to NSUserDefaults, as well as tries to update the…
jake9115
  • 3,964
  • 12
  • 49
  • 78
0
votes
2 answers

Omit [super] call when overriding view events in UIViewController. Impact?

What happens if you don't call super in your implementation of the view events (viewWillAppear, viewDidAppear etc.) of UIViewController? It seems like I've forgotten to do this before, and it's unclear to me that there was any adverse impacts.
drc
  • 1,905
  • 4
  • 22
  • 28
0
votes
3 answers

[self viewDidAppear:YES];

Does [self viewDidAppear:YES]; in the viewDidLoad section of code ensure that the viewDidAppear section of code will run? Based on feedback from a small subset of our users, it appears for whatever reason that the code I have written in the…
RanLearns
  • 4,086
  • 5
  • 44
  • 81
0
votes
0 answers

Pushing storyboard viewcontroller prevents view from loading by viewDidAppear?

I have a storyboard with one view controller that pushes another view controller with this code: UIViewController *viewController = [self.storyboard instantiateViewControllerWithIdentifier:@"adVideo"]; [self…
Billy Shih
  • 624
  • 6
  • 17
0
votes
0 answers

ViewDidAppear from viewcontroller 1 is getting called in viewcontroller 2

I have two view controllers. I display the 1st one and then when I modally display the second one viewDidAppear gets called from the View Controller 1 after viewDidAppear gets executed from View Controller 2. Why is View Controller 1's viewDidAppear…
Ben Coffman
  • 1,750
  • 1
  • 18
  • 26
0
votes
1 answer

presentViewController and viewDidAppear not getting called in iOS5.1/6

I have a view controller B in a parent view controller A. Both views are showing the same time. In view controller B, I'm trying to present a new view controller using the following method: - (void) buttonClicked:(id)sender { MyViewcontroller…
Nora Olsen
  • 983
  • 2
  • 10
  • 22
0
votes
1 answer

Refreshing the webview in iPhone app

In the home page of my iphone application i am calling a web page, users can do some actions(comment,like etc) from other tabs of my app-After that,when the come back to home page the web page must be refreshed(eg:- comment/like count must be…
user1824262
0
votes
2 answers

iOS UIViewAnimation not working

I have a master detail application that when the detail view appears and a string is empty, I want it to present a new view through a UIViewAnimationFlip. The animation is working, but it keeps flipping to itself, not the view controller I…
Jon Erickson
  • 1,876
  • 4
  • 30
  • 73
0
votes
1 answer

UITableView gets resize only in ViewDidAppear

I got a weird problem and i don't know where/how to fix it... i have 6 UITableViews on a UIViewController ( i'm using storyboard ), i would like to resize them in the ViewDidLoad but i cannot, the only way i found to resize them it is in the…
xGoPox
  • 674
  • 8
  • 23