| 44 | USING_NS_AX; |
| 45 | |
| 46 | ProfilePage* ProfilePage::create(int accountID, bool mainMenuProfile) |
| 47 | { |
| 48 | ProfilePage* pRet = new ProfilePage(); |
| 49 | |
| 50 | if (pRet && pRet->init(accountID, mainMenuProfile)) |
| 51 | { |
| 52 | pRet->autorelease(); |
| 53 | return pRet; |
| 54 | } |
| 55 | |
| 56 | AX_SAFE_DELETE(pRet); |
| 57 | return nullptr; |
| 58 | } |
| 59 | |
| 60 | bool ProfilePage::init(int accountID, bool mainMenuProfile) |
| 61 | { |