จดเทคนิคของคุณ Nick เอาไว้
เป็นการเปิดอ่านไฟล์จาก resource ของเรา เช่นพวก txt html หรือ xml ที่อยู่ใน project ของเรา
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"MyFile" ofType:@"txt"];
NSData *myData = [NSData dataWithContentsOfFile:filePath];
เอกสารอ้างอิง http://iphoneincubator.com/blog/tag/nsdata
พื้นที่โฆษณา : อบรมเขียนเกมส์สองมิติด้วย xna นะค่ะ http://www.asiamediasoft.net/content/training.php
Tags: iphone, nsdata, programming, xnanoob0 Comments






