---
title: "cocos2d-x 开启多点触摸"
author: "gqlu"
date: "2013-07-17T01:02:23Z"
tags: []
categories: ["移动开发"]
slug: "cocos2d-x"
draft: false
lastmod: "2013-07-16T18:54:55Z"
id: 1908052
url: "https://gamedev.iteye.com/blog/1908052"
---

cocos2dx 在 ios 上默认不打开多点触摸设置，需要我们手动设置一下，不过设置也非常的方便，只需要在你工程的 AppController.mm 里面在申请 __glView 之后，加入下面的一行：
```c
[__glview setmultipletouchenabled:yes];
```
即可。