如何处理多个地图集文件

时间:2015-09-28 09:41:41

标签: ios objective-c sprite-kit texture-atlas

我在文件夹名称myImages.atlas中有一堆图像。放在一起的这些图像将占用超过2048x2048。基于Apple文档,我希望XCode能够自动将其分解为多个文件。

import UIKit

class ViewController: UIViewController {


@IBOutlet weak var customViewVirtual: CustomView!
@IBOutlet weak var customViewContactar: CustomView!
@IBOutlet weak var customViewPresenciales: CustomView!
@IBOutlet weak var customViewCalendario: CustomView!

override func viewDidLoad() {
    super.viewDidLoad()
    self.view.backgroundColor = UIColor(patternImage: UIImage(named: "fondo")!)
    customViewVirtual.backgroundColor=UIColor.clearColor()
    customViewContactar.backgroundColor=UIColor.clearColor()
    customViewPresenciales.backgroundColor=UIColor.clearColor()
    customViewCalendario.backgroundColor=UIColor.clearColor()



    // Do any additional setup after loading the view, typically from a nib.
}


override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.
}

但是当我尝试编译时失败并出现错误:

After an image has reached its maximum size, a new image is created.

有没有人知道XCode是否有可能处理这种情况,如果是的话,我可能做错了什么?

0 个答案:

没有答案