#import <UIKit/UIKit.h>
@interface ProfileViewController : UIViewController {
UIImageView *profPic;
UILabel *name;
UILabel *hosted;
UILabel *points;
UILabel *attended:
UITableView *tableView;
}
@property (nonatomic, retain) IBOutlet UIImageView profPic;
@property (nonatomic, retain) IBOutlet UILabel name;
@property (nonatomic, retain) IBOutlet UILabel hosted;
@property (nonatomic, retain) IBOutlet UILabel points;
@property (nonatomic, retain) IBOutlet UILabel attended:
@property (nonatomic, retain) IBOutlet UITableView tableView;
@end
Q
這些錯誤有哪些?
0
A
回答
2
的UI *對象應該是指針:
IBOutlet UIImageView * profPic;
2
雖然還沒有發佈你得到什麼錯誤出現在你的代碼是2個顯而易見的問題:
在該行的末尾結腸應分號:
@property (nonatomic, retain) IBOutlet UILabel attended: ^^^
屬性的類型應該是指針(屬性聲明中缺少'*')
@property (nonatomic, retain) IBOutlet UILabel* attended;
1
@property (nonatomic, retain) IBOutlet UIImageView *profPic;
對象的名稱前添加星號(*)。
相關問題
- 1. 這些LateX錯誤來自哪裏?
- 2. 哪種方式去與這些錯誤
- 3. 哪些錯誤與這個MySQL功能
- 4. 這些AWK命令有哪些功能?
- 5. 哪些錯誤與這些Heroku的日誌
- 6. 這裏有哪些參數?
- 7. 找出哪些佈局有錯誤
- 8. 我的行爲有哪些錯誤?
- 9. 我應該處理哪些錯誤?哪些是「致命的」?
- 10. 這些圖標來自哪些設置?
- 11. jQuery Mobile中的所有這些無形類都有哪些?
- 12. 錯誤LNK2001和錯誤LNK2019(C++) - 請求一些瞭解這些錯誤
- 13. 所有這些消息來自哪裏?
- 14. Node.js - 這會錯過一些錯誤嗎?
- 15. 使用LINQ執行這些操作的方法有哪些?
- 16. 這些不同的函數定義有哪些優缺點?
- 17. 哪些這些條件在php中有更好的性能?
- 18. 這些不同的dealloc策略有哪些優缺點?
- 19. Asp.NET MVC4 - 「這些去哪裏?」
- 20. 這些存儲在哪裏?
- 21. 這些nan從哪裏來?
- 22. 哪些錯誤與這條巨蟒的SQL語句
- 23. 不知道這些語法錯誤來自哪裏
- 24. 哪些錯誤與此MySQL查詢
- 25. 哪些錯誤與此IMG HTML標記
- 26. 哪些錯誤與此打印順序
- 27. 哪些錯誤與此htaccess的線
- 28. 哪些錯誤與我的功能
- 29. 哪些錯誤使用此功能
- 30. 哪些錯誤與此光標
什麼錯誤?我看不到任何錯誤?我看到的只是源代碼。 – paxdiablo 2010-10-27 06:00:06