Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8836617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:32:13+00:00 2026-06-14T09:32:13+00:00

Let me first start with explaining the situation. I am making a IOS app

  • 0

Let me first start with explaining the situation. I am making a IOS app that is working with a webservice and a webApplication. Take the following example.

Let’s say we have company X. company X can make all kinds of forms with the webapplication (Callback form, meetingRequest form, vacationRequestForm,…) Employers will then open their application and see all the titles of these forms in a tableview. When they click on a title they go to the next screen and see the entire form and can start filling it up.

The difficulty here is that each company can create their own forms. So company X maybe have other kinds of forms than company Y. After a lot of research I found the amazing library of QuickDialog. You can find it over here. Definitely worth it to check it out!

PROBLEM
Okay now the problem. Offcourse the data should be send back to the server once a user filled up the form. To do that I am working with a controller class and a NSObject class. The best way to understand is look at the login example. First of all, this is the json of the login.

{
    "grouped": true,
    "title": "Login Form",
    "controllerName": "LoginController",
    "sections": [
        { "title":"login", "elements": [
                { "type":"QEntryElement", "title":"Login","placeholder":"Login or email", "bind":"textValue:login", "key":"login"},
                {  "type":"QEntryElement", "title":"Password", "placeholder":"Password",  "secureTextEntry":true, "bind":"textValue:password" }
            ]
        },
        { "elements":[
                { "type":"QButtonElement", "key":"button", "title":"Login", "controllerAction":"onLogin:"}
            ]
        }
    ]
}

You can see that the two fields have a binding option. The project contains a NSObject class (loginInfo) In this class those fields are added as NSStrings.

@interface LoginInfo : NSObject {
@private
    NSString *_password;
    NSString *_login;
} 
@property(strong) NSString *login;
@property(strong) NSString *password;
@end

Next there is a controller class. In this controller class you say that when the button is pushed you fetch the values from the textfields into this loginInfo class. This is done at the following way.

- (void)onLogin:(QButtonElement *)buttonElement {

    [[[UIApplication sharedApplication] keyWindow] endEditing:YES];
    [self loading:YES];
    LoginInfo *info = [[LoginInfo alloc] init];
    [self.root fetchValueUsingBindingsIntoObject:info];
    [self performSelector:@selector(loginCompleted:) withObject:info afterDelay:2];
}
- (void)loginCompleted:(LoginInfo *)info {
    [self loading:NO];
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Welcome" message:[NSString stringWithFormat: @"Hi %@, I hope you're loving QuickDialog! Here's your pass: %@", info.login, info.password] delegate:self cancelButtonTitle:@"YES!" otherButtonTitles:nil];
    [alert show];
}

Okay I know this is alot of info. But I only want a good explanation of my problem. I think the controller class is not my problem but the NSObject class is. I want this to be generic. Because this should be filled up with the properties it gets back from the json. I don’t know how I can do that.

I hope anybody can help me! If you need more explanation feel free to ask!

Kind regards and many thanks in advance !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:32:14+00:00Added an answer on June 14, 2026 at 9:32 am

    fetchValueUsingBindingIntoObjects: takes an “id”, which means pretty much any object that supports KVC will do it:

    NSMutableDictionary *dict = [NSMutableDictionary new];
    [self.root fetchValueUsingBindingsIntoObject:dict];
    

    This way you can get data about any form, and use it to send it back to the web.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off, let me start by saying that I am totally new to working
Let me start by explaining this is my first Android app. So I don't
Let me start off by saying that this is my first time working with
Ok, let me first start off by saying that I've only ever dealt with
To describe my dilemma, let me first start with an example problem (stolen from
First let me start by saying that I don't have a complete understanding of
First off, let me start off that I am not a .net developer. The
First let me start by explaining my use case: Say there is a database
First let me start with an example, Public Class EmpDemo Public Function getEmpData() as
Let me first start off, sorry for the confusing title. I didn't know how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.