objective c - ios: gdb p (CGFloat) [[self view] center].x -


how p(print) cgfloat in xcode gdb:

gdb p (cgfloat) [[self view] center].x

result:

unable call function "objc_msgsend" @ 0x184e08c: no return type information available. call function anyway, can cast return type explicitly (e.g. 'print (float) fabs (3.0)')

you have cast objective-c method calls when using gdb.

gdb p (cgfloat) ((cgpoint)[(uiview *)[self view] center]).x 

Comments

Popular posts from this blog

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -

php - Deleting/Renaming a locked file -