コード例 #1
0
ファイル: CAScrollView.cpp プロジェクト: wjm0729/CrossApp
CAIndicator* CAIndicator::create(const CAIndicatorType& type, CAScrollView* var)
{
    CAIndicator* indicator = new CAIndicator(type, var);
    if (indicator && indicator->init())
    {
        indicator->autorelease();
        return indicator;
    }
    CC_SAFE_DELETE(indicator);
    return NULL;
}
コード例 #2
0
ファイル: CAScrollView.cpp プロジェクト: khjl12345/CrossApp
CAIndicator* CAIndicator::create(CAIndicatorType type)
{
    CAIndicator* indicator = new CAIndicator(type);
    if (indicator && indicator->init())
    {
        indicator->autorelease();
        return indicator;
    }
    CC_SAFE_DELETE(indicator);
    return NULL;
}