Xcode Debugger: view value of variable

前端 未结 7 844
囚心锁ツ
囚心锁ツ 2020-12-12 14:45

My code in a UITableViewController:

delegate.myData = [myData objectAtIndex:indexPath.row];

How can I see the values of delegate.myDa

7条回答
  •  旧巷少年郎
    2020-12-12 15:17

    This gets a little complicated. These objects are custom classes or structs, and looking inside them is not as easy on Xcode as in other development environments.

    If I were you, I'd NSLog the values you want to see, with some description.

    i.e:

    NSLog(@"Description of object & time: %i", indexPath.row);

提交回复
热议问题