我已经将另一个程序员的项目导入Xcode并得到错误"找不到UIKit/UIKit.h文件".我试图右键单击Frameworks文件夹,但没有找到添加它的方法.如何将UIKit添加到此项目中?
作为Mac新手,我需要将大约5,000行ANSI C转换为Objective C才能在iPad应用中使用.大多数代码与下面的示例类似.为了节省时间并最大限度地减少错误,我只想在绝对需要移植到Obj C时更改原始C代码.为了帮助我理解转换,必须更改下面代码的哪些部分才能连接到iPhone/iPad用户界面?真的很感激任何指导.谢谢您的帮助.
void GetLandingSpeeds(LandingSpeeds *mySpeeds, int PhenomType, LandingInterpolationParameters *InterParams, char *FlapLand, char *WingStab)
{
mySpeeds->LandingSpeedsOK = No;
sprintf(query_string,"SELECT * FROM Landing_Speeds WHERE Weight = %d AND FlapLand = '%s' AND WingStab = '%s'", InterParams->Weight_lower, FlapLand, WingStab);
Query* GetFlapsSpeeds_Lower = sql_select_query(query_string, AircraftDatabase);
if (InterParams->Weight_Interpolation_Percent == 0)
{
// single table
if (GetFlapsSpeeds_Lower->RecordCount == 1)
{
mySpeeds->Vac = atoi(sql_item(GetFlapsSpeeds_Lower, "Vac"));
mySpeeds->Vref = atoi(sql_item(GetFlapsSpeeds_Lower, "Vref"));
if (PhenomType == P300)
mySpeeds->Vfs = atoi(sql_item(GetFlapsSpeeds_Lower, "Vfs"));
mySpeeds->LandingSpeedsOK = Yes;
}
}
else
{
// …Run Code Online (Sandbox Code Playgroud)