iphone - 类型名称未知Iphone错误

标签 iphone ios uitableview uiview

出现“未知类型名称”错误。我也导入了“billSummary”类,但是不知道为什么xcode会给出这个错误。

#import <UIKit/UIKit.h>
    #import "customiseForItems.h"
    #import "billSummary.h"

    @interface itemsInParty : UITableViewController<UIAlertViewDelegate>{
        IBOutlet customiseForItems *tblCell;
        IBOutlet UIToolbar *billSummaryTool;

        CGFloat percValue;
        billSummary *billSummaryToShow;        //ERROR UNKNOWN TYPE NAME BILL SUMMARY
        UIAlertView *alertForPercentage;
        NSMutableArray *selectedEntriesPath;
        BOOL descTapped;
    }

最佳答案

@class billSummary;而不是#import "billSummary.h"
尝试这样,将对您有所帮助。

关于iphone - 类型名称未知Iphone错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11305194/

相关文章:

iphone - 无法在工具上选择跟踪事件分配

iOS 9 读取文件权限

iphone - 将字符串属性添加到 CoreDataBooks

ios - iOS 7 是否支持 Applescript?

c++ - 使用 Xcode 13 在 iOS 15 上编译 Cronet 时,shrink_to_fit() 的 "Undefined symbols"

ios - tableview 内的 UITextView 不根据内容调整大小

swift - 无法为自定义 View 设置约束,Swift

iOS 8.3 - UITableView 单元格未对齐,向左缩进

iPhone 应用程序被拒绝 - 由于 iPad 崩溃,目标设备系列被设置为仅限 iPhone

objective-c - 在 Swift 中展开 Optional 值错误