jsonmodel

    1熱度

    1回答

    我瘋了這個問題,但我認爲答案比預期的更容易。 我有這樣一個類: @protocol Messagge @end @interface Messagge : JSONModel @properties ..... ... ... .. - (...) methods...... @end 我使用這個類的對象在一個的NSMutableArray我下載從web服務的JSON。 在這樣的

    1熱度

    2回答

    我有這個在我的SongModel.h: @interface SongModel : JSONModel @property (strong, nonatomic) NSString *title; @property (strong, nonatomic) NSString *artist; @property (strong, nonatomic) NSDate *start; @pr

    0熱度

    1回答

    我有兩個類 ===人民==== @protocol People @end @interface People : JSONModel @property (strong, nonatomic) NSString *id; @property (strong, nonatomic) NSString *userName; @end === People容器=== = @int

    0熱度

    1回答

    我一直在嘗試使用JSONmodel嘗試從我的服務器獲取數據到我的ios設備。我已經正確地建立了我的類,但由於某種原因,它在調用url之後會一直返回null。 feed = [[Feeds alloc] initFromURLWithString:@"http://http://www.cs4768project.net76.net/untitled.php?action=getShops"

    0熱度

    1回答

    JSONModel讓你轉換模型對象爲NSDictionary如下: NSDictionary *dict = [myJSONModel toDictionary] 它包括模型(可選除外)的所有特性。但是,我還需要創建多個字典,其中只有某些後臺操作所需的模型字段。 一些領域可以包括在多個詞典,因此理想情況下,這將是真棒,如果我可以這樣做: NSDictionary *dictOne = [myJ

    -1熱度

    1回答

    我正在從http發佈http到我的web服務,這是寫在.NET平臺上。 我使用JSONModel來序列化/反序列化和AFNetworking發出http請求。 我可以提出請求並獲得響應。但是當響應數據上的任何變量爲null時就會發生問題。 這裏是我打電話給我的web服務: NSDictionary *parameters = @{@"Username":username,@"Password":p

    3熱度

    1回答

    我試圖用框架JSOSNModel序列化我的對象。但我發現了以下錯誤: [JSONModel.m:915] EXCEPTION: Invalid type in JSON write (DienstleistungModel) 這裏是我的源代碼: buchung.m -(NSMutableArray *) FetchDienstleistungenImWarenkorb { NSFetc

    0熱度

    1回答

    得到一個NSArray的對象,我有一個問題,在閱讀JSON通過JSONModel庫https://github.com/icanzilb/JSONModel ,並使用KivaDemo在JSonModel應用程序,該JSON: 我想要得到的「恩」, @interface KivaFeed : JSONModel @property (strong, nonatomic) NSArray<Loan

    4熱度

    1回答

    MagicalRecord是一個很好的庫來管理coredata。在我的應用程序,我必須處理JSON從Web服務管理JSON我們使用JSONModel。現在問題是我必須使用兩個單獨的類來管理神奇記錄和jsonModel。 有什麼辦法可以將這兩種方法結合起來? 在此先感謝。

    1熱度

    1回答

    我的JSON我取: {"username":"example","confirmed_rewards":"5","round_estimate":"0.73605946","total_hashrate":"0","payout_history":"10","round_shares":"85", "workers":{ "worker.1":{"alive":"0","hashrate":