Example #1
0
void CCtrlPage::adjustScrollView(void)
{
	if (NULL == m_pScrollView)
	{
		return;
	}

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