NSLog(@" %@",NSStringFromCGRect([(UIButton*)[array lastObject]frame])); <pre><code>NSLog(@" %@",NSStringFromCGRect([(UIButton*)[array lastObject]frame])); </code></pre> <p>what is the error in this statement. My code is breaking error [__NSArrayI frame]: unrecognized selector sent to instance 0x1c5f2e00</p>