开发者

Best cocoa component to make an interface like html table [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

What's the best component开发者_如何学C to make an interface like this:

Best cocoa component to make an interface like html table [closed]

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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜