私はObjective-Cが初めてで、非常に初心者です。テキストを a から に渡そうとしてUITextField
いSecondViewController
ますFirstViewController
。私が今持っているものは次のとおりです。
(SecondViewController.h)
@interface SecondViewController : UIViewController <UITextFieldDelegate>
@property (weak, nonatomic) IBOutlet UITextField *PrimaryPhone;
@end
(FirstViewController.m)
#import "SecondViewController.h"
@interface FirstViewController ()
@end
@implementation FirstViewController
@synthesize PrimaryPhone;
次に、.m ファイル内に含まれるその他の既定の項目があります。
しかし、それが言うところ:
@synthesize PrimaryPhone;
Xcode でタイトルにエラーが表示されます。(プロパティの実装には、インターフェイス 'FirstViewController' で宣言が必要です)