-1
「未知類型名‘的ViewController’你的意思‘的UIViewController’」視圖控制器錯誤
那是錯誤,我得到這個
#import <UIKit/UIKit.h>
#import <StoreKit/StoreKit.h>
#import "ViewController.h"
@interface PurchaseViewController : UIViewController <SKPaymentTransactionObserver, SKProductsRequestDelegate>
@property (weak, nonatomic) IBOutlet UILabel *productTitle;
@property (weak, nonatomic) IBOutlet UIButton *buyButton;
@property (weak, nonatomic) IBOutlet UITextView *productDescription;
- (IBAction)buyProduct:(id)sender;
@property (strong, nonatomic) SKProduct *product;
@property (strong, nonatomic) NSString *productID;
@property (strong, nonatomic) ViewController *homeViewController; //error here
- (void)getProductInfo:(UIViewController *)viewController;
@end
請問您可以將此格式設置爲一個問題,並告訴我們您嘗試了什麼。 – Daniel 2013-04-29 21:47:52
請問您可以顯示ViewController.h嗎? – matt 2013-04-29 21:49:09
OP無響應。 – matt 2013-04-29 23:04:49