Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"self" object for UIViewcontroller has @"0 objects" in debug window in xcode

I segue to a Viewcontroller that immediately has 0 objects for "self" and although I can access "self." objects, I cannot see them in the debug window. Without pasting the code, is there a known reason for this to be happening? Thanks!

to clarify: In the debug window under "self", i can usually see my variables and classes and what their values are but for this one, I see none and it says @"0 Objects"

like image 419
Tre K. Avatar asked Nov 21 '14 15:11

Tre K.


1 Answers

It seems you did copy&paste some controls from other viewcontroller into the viewcontroller in the storyboard and xCode confused about the controls.
Following steps maybe help you.

  1. Restart xCode.
  2. Open the storyboard.
  3. Select all controls in the viewcontroller and delete them.
  4. Undo delete.
like image 142
imfromMO Avatar answered Nov 17 '22 04:11

imfromMO