예제 #1
0
파일: CtrlPage.cpp 프로젝트: twkevin/ddz
void CCtrlPage::adjustScrollView(void)
{
	if (NULL == m_pScrollView)
	{
		return;
	}

	CCPoint offset = m_pScrollView->getContentOffset();
	unsigned int nIndex = _indexFromOffset(offset);
	SetCurPageIndex(nIndex, true);
}
예제 #2
0
	CCTableViewCell * cellForTouch(CCTouch *t){
		unsigned int index;
		CCPoint point = getContainer()->convertTouchToNodeSpace(t);
		index = _indexFromOffset(point);
		return cellAtIndex(index);
	}