在對象C,我們讀到束種源這樣的: pathName = [[NSBundle mainBundle] pathForResource:@"fileName" ofType:@"filetype"];
在IOS如何讀種源包文件
則:
[NSString stringWithContentsOfFile:pathName encoding:NSUTF8StringEncoding error:nil]
,但現在我想讀的種源內容一個C++
文件,但不希望任何其他方式objective-c
代碼?
你可以用'objc_msgSend()'來做到這一點,但我懷疑你真的想要 – 2013-04-04 13:15:33