3

While debugging an iOS application, I know how to print values of objects using :

print "variable name"
po    "variable name"

I wanted to know how to print values of variables which are not object-type, like for example NSInteger, int, float etc.

Thanks.

4

1 回答 1

5

just use p intVar to print variables.
Sometimes you need to cast: p (CGRect)[[self view] frame]

于 2012-09-19T10:12:15.590 回答