Ejemplo n.º 1
0
void CCtrlPage::adjustScrollView(void)
{
	if (NULL == m_pScrollView)
	{
		return;
	}

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