15

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"

Tre K.
  • 151
  • 4
  • why not pasting your code? Makes the answer much easier... – SBH Nov 21 '14 at 15:48
  • It's difficult to know what are you really asking. Are you running the Debug configuration? – djromero Nov 21 '14 at 16:59
  • sorry, I thought I would get email when a reply was posted. 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" – Tre K. Nov 24 '14 at 19:05
  • 1
    I have same issue. When i try to debug something in my UIViewController it's self = 0 key/value pairs instead of some bytes. – Victorianec Dec 19 '14 at 13:43
  • 1
    I got this problem too. Hard to find the good key words to search. My bug fixing get stuck by it. – ManuQiao May 06 '15 at 08:31
  • I had to recreate UIViewController all over again – Boris Gafurov Sep 02 '15 at 04:26

1 Answers1

7

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.
imfromMO
  • 81
  • 3
  • My controller is pure coded, no xib or storyboard. I restarted Xcode and even the Mac. It doesn't work. – ManuQiao May 06 '15 at 08:34