小编Mon*_*ess的帖子

如何将UIKit添加到Xcode项目?

我已经将另一个程序员的项目导入Xcode并得到错误"找不到UIKit/UIKit.h文件".我试图右键单击Frameworks文件夹,但没有找到添加它的方法.如何将UIKit添加到此项目中?

xcode uikit

5
推荐指数
2
解决办法
2万
查看次数

将ANSI C移植到Objective C所需的最小更改是什么?

作为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)

c objective-c ipad

0
推荐指数
1
解决办法
497
查看次数

标签 统计

c ×1

ipad ×1

objective-c ×1

uikit ×1

xcode ×1