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
Post a Comment