Objectはallocとinit..canの後にnilの記述を返します。いずれかの場合、サーバーから来るデータを表示する必要があります...編集ボタンをクリックすると、そのクラスのshoow部屋のクラス..内部のテキストフィールドには、いずれかの.can情報を表示するには、肝炎ここiOS:オブジェクトはallocとinitの後にnilの記述を返します
@interface HeadOfficeDetails : NSObject
@property(nonatomic,strong) NSMutableArray *ofcContact;
@property(nonatomic,strong) OfficeDocument *ofcDocument;
@property(nonatomic,strong) OfficePrice *ofcPrice;
@property(nonatomic,strong) CityClass *city;
@property(nonatomic,strong) StateClass *state;
@property(nonatomic,strong) DistrictClass *district;
@property(nonatomic,strong)NSString *shrtname;
@property(nonatomic,strong)NSString *shwrmname;
@property(nonatomic,strong)NSString *shop;
@property(nonatomic,strong)NSString *door;
@property(nonatomic,strong)NSString *buildng;
@property(nonatomic,strong)NSString *flr;
@property(nonatomic,strong)NSString *tele;
@property(nonatomic,strong)NSString *pin;
@property(nonatomic,strong)NSString *main;
@property(nonatomic,strong)NSString *dist;
@property(nonatomic,strong)NSString *designan;
@property(nonatomic,strong)NSString *depart;
@property(nonatomic,strong)NSString *emai;
@property(nonatomic,strong)NSString *mobile;
@property(nonatomic,strong)NSString *strt;
@property(nonatomic,strong)NSString *area;
@property(nonatomic,strong) NSString *jwleryname;
@property(nonatomic,strong) NSString *officeid;
-(void)setAttributes:(NSDictionary *)attributes;
///////////////////////////////////////////////
showroom class
headdetails=[[HeadOfficeDetails alloc]init];
self.txtshowroom.text=headdetails.jwleryname;
NSLog(@"%@ :",self.txtshowroom.text);
NSNumber *officeid=headdetails.officeid;
NSLog([NSString stringWithFormat:@"%@",officeid]);
[self.txtshortname setText:headdetails.jwleryname];
[self.txtshowroom setText:headdetails.shwrmname];
[self.txtstreet setText:headdetails.strt];
[self.txtarea setText:headdetails.area];
[self.txtmain setText:headdetails.main];
[self.txtbuilding setText:headdetails.buildng];
[self.txtname setText:self.cntctcls.contactname];
[self.txtdesign setText:self.cntctcls.desig];
[self.txtdepartmnt setText:self.cntctcls.depart];
[self.txtmbl setText:self.cntctcls.mobile];
[self.txtemail setText:self.cntctcls.email];
[self.txtfloor setText:headdetails.flr];
[self.txttel setText:headdetails.tele];
[self.txtpincode setText:headdetails.pin];
[self.txtshop setText:headdetails.shop];
編集ボタンと一度私はテキストフィールドの任意のものを更新wilの更新 –
私はそこにnsobjectクラスを持っている私はキーの値を設定した –
あなたはサーバーからデータを要求すると、あなたはJSONを返す戻ってくるだろう、その後、あなたのUIにマップすることができます。私はあなたがiOS開発の初心者です、初心者のための本の一部を最初に読ませてください。 RayWenderlicは良いチュートリアルをたくさん持っていました。あなたの問題を理解するためにhttps://www.raywenderlich.com/55384/ios-7-best-practices-part-1を読むことができます。 – Nick