2010-06-07 39 views

回答

0

寫和從的.plist文件中檢索您的參數:

NSString *filePath = @"Parameters.plist"; 
NSMutableDictionary* plistDict = [[NSMutableDictionary alloc] initWithContentsOfFile:filePath]; 

NSString *value = [plistDict objectForKey:@"parameterName"]; 
0

您還可以添加公共定義的類文件(例如AppConstansts.h),與定義(例如#define CELL_HEIGHT 44.0)填寫,並在<Your project name>_Prefix.pch文件通常位於下的項目「其它來源」組中添加一個導入線(#import "AppConstansts.h")。

做CELL_HEIGHT將會從所有源文件訪問後...