Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17071

CCMenuItem doesn't work (Xcode 7.3~)

$
0
0

@Sean_Ichikawa wrote:

Hi, I’m a Japanese game developer. I develop some games with cocos2d-x.
I’m confused by the following problem. So, if you any idea, please help me.

When tap the button put on a cocos2d-x layer, the button doesn’t work.
If the button be tapped, the call-back function of the button doesn’t be called.
I have found some workarounds of the problem. However, I have no idea why the problem occurs. And, I want the most suitable way, how to fix it.

The following are develop environment and mobile devices that the problem occurs.

[Develop environment]
- Operating system : Mac OS X El capitan(10.11.5)
- Xcode version : 7.3 - 7.3.1(7D1014)
- cocos2d-x version : cocos2d-x-3.2
- build config. : Test / Release

[Mobile devices]
- iPhone4s(iOS 9.3.2), iPhone5(iOS 9.3), iPad mini(iOS 9.3.1)

If mobile device's condition (iOS version etc.) is different, the problem may not occur.
And, the apps built by Xcode 7.2.1 or older version have no problem. it work normally.
The problem doesn’t also occur with the apps built by Debug build mode.

I attach a sample Xcode project file. (CCBTest.zip)
The button of the layer is made by ccbi (ccbi = cocos builder file).
The call-back function is referenced to the button by "Selector" in the ccbi file.

[About the sample Xcode project]
- Xcode Project name : CCBTest
- ccbi file: Resources/simple.ccbi
- Class file (written about layer) : Classes/SimpleView.h

Because the problem have not been resolved, so I use Xcode 7.2.1 now.
If you any idea, please give me.
Thank you for reading my question.

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 17071

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>