tag:blogger.com,1999:blog-4825554590190698904.post2216176245591714563..comments2023-10-18T15:30:00.444+01:00Comments on NotNowNigel: Sending Email Landscape style in Cocos2DNotNowNigelhttp://www.blogger.com/profile/15476793526038989403noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-4825554590190698904.post-16931500115504897572014-05-13T06:22:09.179+01:002014-05-13T06:22:09.179+01:00I tried the following:
UIViewController *rootVie...I tried the following: <br /><br />UIViewController *rootViewController = (UIViewController *)[[[CCDirector sharedDirector] openGLView] nextResponder];<br /> <br />but the returned pointer is to a UIWindow and not not a UIViewController and causes the code to crash with unrecognized selector.<br /><br />Wondering if you could point me in the right direction to make this code work in Cocos2d 1.0<br /><br />Thanks<br />TimAnonymoushttps://www.blogger.com/profile/04136027059027587197noreply@blogger.comtag:blogger.com,1999:blog-4825554590190698904.post-88317738968288858782014-05-13T05:57:48.501+01:002014-05-13T05:57:48.501+01:00Hi Nigel,
I apologize in advance for asking abou...Hi Nigel, <br /><br />I apologize in advance for asking about this old post: <br /><br />I have a Cocos2d app written in Cocos2d 1.0 and am trying to implement the email via MFMailComposeViewController. I tried using the code you provided but the line <br /><br />UIViewController *rootViewController = (UIViewController *)[[[CCDirector sharedDirector] view] nextResponder]; <br /><br />is not recognized in 1.0. Unfortunately I am way too far in for changing to Cocos2d. <br /><br />I have been searching the web but I have not found any equivalent to the above line in Cocos2d 1.0. <br /><br />would you happen to know what the appropriate equivalent for 1.0 might be? <br /><br />Thanks<br />TimAnonymoushttps://www.blogger.com/profile/04136027059027587197noreply@blogger.comtag:blogger.com,1999:blog-4825554590190698904.post-21711126829499884642013-08-14T17:23:59.892+01:002013-08-14T17:23:59.892+01:00[[CCDirector sharedDirector] presentModalViewContr...[[CCDirector sharedDirector] presentModalViewController:picker animated:YES]; would be betterSleeplesshttps://www.blogger.com/profile/18108972330826535830noreply@blogger.com