Sunday, October 11, 2009

iPhone dev Stupidity 52: Print frame in GDB

To print the frame in gdb:


(gdb) p (CGRect)[self frame]


$1 = {


  origin = {


    x = 12, 


    y = 150


  }, 


  size = {


    width = 72, 


    height = 49


  }


}



You can also 
 po self

No comments: