Object returns nil Beschreibung nach Alloc und init..kann irgendjemand mir sagen, ich muss die Daten anzeigen, die vom Server kommt ... wenn ich auf Bearbeiten klicke, geht es zu shoow Raumklasse in dieser Klasse .. innerhalb Textfelder hav die Informationen .can einem helfen miriOS: Object gibt keine Beschreibung nach Alloc und Init
@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];
ich möchte die Daten in Textfelder zeigen, wann immer der Benutzer klickt auf Edit-Taste und sobald ich jedes Ding im Textfeld aktualisieren es wird –
Ich habe nsobject Klasse dort habe ich die Schlüsselwerte –
Wenn Sie Daten vom Server anfordern, erhalten Sie JSON Return zurück, müssen Sie zuerst analysieren es auf Ihre benutzerdefinierte Objekt und danach können Sie es Ihrer Benutzeroberfläche zuordnen. Ich denke, du bist neu in der iOS-Entwicklung, lies zuerst einige Bücher für Anfänger. RayWenderlic hatte viele gute Tutorials, Sie können dieses https://www.raywenderlich.com/55384/ios-7-best-practices-part-1 lesen, um Ihr Problemgesicht zu verstehen. – Nick