摘要:
设置横屏与竖屏的方法 找到RootViewController.m这个文件,打开 找到这个方法 // Override to allow orientations other than the default portrait orientation.- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {// return YES for the supported orientations// Only landscape 仅支持横向// return ( UI 阅读全文
摘要:
Joystick摇杆功能的实现(两种实现方式)一、SneakyInputNickPannuto编写的开源类库主要有五个核心类:SneakyButtonSneakyButtonSkinnedBaseSneakyJoystickSneakyJoystickSkinnedBaseColoredCircleSprite(可选)以下是具体的用法:@implementationInputLayer-(id)init{if(self=[superinit]){winSize=[[CCDirectorsharedDirector]winSize];[selfaddJoystick];[selfaddFireB 阅读全文