Best cocoa component to make an interface like html table [closed]
What's the best component开发者_如何学C to make an interface like this:
tks
Use Interface Builder to position 12 buttons exactly as you like. Style them with custom images.
Number their "tag" property from 0 to 11. Create a UIViewController subclass and put a function
-(IBAction)buttonPressed:(id)sender
{
NSLog(@"button %d x %d pressed",sender.tag%4,sender.tag/4);
}
in there. Then in IB, link the touchDown action of all buttons to this IBAction. That's all you need!
精彩评论