@vitek wrote:
I want to inherit Button class, but i get error, why?
MyButton::MyButton() : Button() { } MyButton* MyButton::create() { auto button = new MyButton(); if (button) { button->autorelease(); return button; } CC_SAFE_DELETE(button); return nullptr; }
Posts: 2
Participants: 2