Frequently Asked Questions

Aug 1, 2010 66

Welcome to the FAQ page.  It’s pretty bare at the moment, but I’ll be adding to it as soon as I can :) .

Please check out our support pageDapp Tutorials or Documentation first to see if your question can be answered there.

Otherwise you can post a question on our support page (or contact us directly at dapp@kerofrog.com.au) and I’ll potentially add it to the FAQ.

How come custom images in the Tab Bar aren't showing up correctly?
This is an annoying one :(.

But yeah, to get these to show up correctly, you need to follow the: 'Custom Icon and Image Creation Guidelines'.

http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html

Just need to scroll down to the bit on 'Icons for Navigation Bars, Toolbars, and Tab Bars'. Or you can find the 'Guidelines' column on Table 8-1 and click on the link 2nd from the bottom on same row as 'Tab bar icon' description.

But as a quick rundown:
- Use pure white with appropriate alpha transparency.
- Do not include a drop shadow.
- Use anti-aliasing.
- If you decide to add a bevel, be sure that it is 90° (to help you do this, imagine a light source positioned at the top of the icon).

For tab bar icons, create an icon in the following sizes:

For iPhone and iPod touch:
- About 30 x 30 pixels
- About 60 x 60 pixels (high resolution)
For iPad:
- About 30 x 30 pixels
How come export to code from Dapp does not include XIB files?
A XIB is a single self-contained XML file and the XML schema is specific to XIBs.

The problem is that there is no available DTD (Document Type Definition) or schema available that explains the inner workings of the XIB file.

Thus, there is no way I am able to export Dapp mockups into a XIB file format.

Note (June 2nd 2011): I've just recently posted on the Apple Developer forums asking what Apple's official line on this is and whether they would consider releasing a DTD/Schema for the Xib file format. I'll update this FAQ when I get more info.

Note (June 3rd 2011): I've received a non-official reply indicating that the official line is that the format is subject to change. Will have to wait and see if this is true or not.
How do I get a left/right button on a Navigation Bar to have pointed ends, like arrows?
The traditional left arrow shaped 'back' button that we see on Navigation Bars is something that a Navigation Controller automatically creates when we push a new View Controller onto the Navigation Controller stack.

This Back Arrow Button is something that Apple reserves for it's own use, and while there is actually a way to access the Back Arrow Button, doing so can cause your application to be rejected by Apple. So I won't go into details about it here ;).

There are some other options around this, but the best in my mind is to create a custom view using an image that resembles the Back Arrow Button. Doing it this way will ensure your app does not get rejected by Apple.

There is a great post going into more detail of what is said here on Stack Overflow which is titled - Creating a left-arrow button (like UINavigationBar's “back” style) on a UIToolbar. The post also contains links to sites that you can download custom images to use as your back button from.

The link to this post is: http://bit.ly/kjCZgy
How to hide the Navigation Controller in code
There are two iPhone SDK tutorials that go into more detail about this, you can find these under support, in the 'Dapp Tutorials' section.

But in an abbreviated form, the answer is to use this line of code (for View Controllers):

[self.navigationController setNavigationBarHidden:YES];

For it to work in the View Controllers, you will also need to create a viewWillAppear delegate method in the UIViewController delegates section which I've marked using #pragma mark in the exported code code.

- (void)viewWillAppear:(BOOL)animated {
// Put the code to hide Navigation Controller here

[super viewWillAppear:animated];
}

You can apply this to the whole project by placing this in the AppDelegate, after the Navigation Controller has been created.

[navigationController setNavigationBarHidden:YES];

Please note that this 'project' level setting can be overridden by updating the Navigation Controller hide status within individual View Controllers.
How to make Map View (MKMapView) Annotations in XCode
Real good answer over on Stack Overflow – http://stackoverflow.com/questions/2878758/iphone-create-mkannotation

Basically you need to create an ‘annotation object’, and within that object you put in the details of the annotation.

So, for example (Using Dapp exported code as reference point):
MyAnnotation * annotation = [[[MyAnnotation alloc] initWithCoordinate:coordinate] autorelease];
[mapView1 addAnnotation:annotation];

With ‘MyAnnotation’ being a class that implements the MKAnnotation protocol.

So, your 'MyAnnotation' header might look like this:

@interface MyAnnotation : NSObject<MKAnnotation> {
CLLocationCoordinate2D coordinate;
}

@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;

// add an init method so you can set the coordinate property on startup
- (id) initWithCoordinate:(CLLocationCoordinate2D)coord;

and the implementation:

- (id) initWithCoordinate:(CLLocationCoordinate2D)coord {
coordinate = coord;
return self;
}


Note: Don't forget to add in the MKMapView library when working with maps in Xcode.
How to put your image, audio and video files into the Dapp iTunes folder
To access your own images, audio and video - you need to first put them onto your device using iTunes.

To do this, follow the following steps :).

1. Connect your device (iPhone / iPad / iPod) to your computer.
2. Open up iTunes
3. Select your device from the left hand menu of iTunes
4. Click on the 'apps' tab in the top middle section of iTunes.
5. At the bottom of the 'Apps' tab page is a list of installed apps, select Dapp.
6. Drag and drop files from your desktop into the home folder for Dapp.

And that's it :)... you should now be able to access your files from within Dapp.
How to send crash reports to us?
1. Connect your iPhone to your computer and open iTunes
2. Right-click (Windows) or control-click (Mac) on your iPhone under devices
3. Click ‘Reset Warnings’
4. Sync your iPhone

When iTunes prompts you to send diagnostic and usage information to Apple, select No (disagree)

The crash reports are now saved on your computer, the directory they are in depends on the platform, the directory is:

Mac OS X: ~/Library/Logs/CrashReporter/MobileDevice/
Windows XP: C:\Documents and Settings\\Application Data\Apple Computer\Logs\CrashReporter\MobileDevice\
Windows Vista or 7: C:\Users\\AppData\Roaming\Apple Computer\Logs\CrashReporter\MobileDevice\

Attach the Dapp crash reports (prefixed by the word ‘Dapp’) to an email and send them to us at dapp@kerofrog.com.au
How to transfer projects from Dapp Lite to the full version of Dapp
Not difficult to do :), but a few steps to follow.

1. In Dapp Lite, go to Settings and create a backup of your data.
2. Connect your iOS device to your computer and start iTunes.
3. Select your connected iOS device from within iTunes (left hand side)
4. Tap on the 'Apps' tab in iTunes (top middle)
5. Scroll down through the list of apps on your device and select 'Dapp Lite'
6. Drag over the zipped backup file to your desktop. You should see it in the home folder of 'Dapp Lite'
7. Scroll down through the list of apps on your device and select 'Dapp'
8. Drag the zipped backup file on your desktop into the home folder of 'Dapp'
9. You can now disconnect your device and open up Dapp.
10. Go to settings and select the option to restore backups.
11. Select the backup file.

And that's it :). Happy Dapping. ;)

 

To your app success!,
Cliff

P.S. Technology is only a small part of your app success. There is the business, sales and marketing that you need to think of too :). Which is why I also provide a bunch of free education on how to succeed on the App Store - http://kerofrog.com :).

66 Responses to “Frequently Asked Questions”

  1. Bjorn says:

    Hi!
    Thx for a awesome app!

    I’m wondering if you will add some fuctions to use the camera in dapp project? Like the mapkit controller. Would be really cool :)

    //Bjorn

  2. teamstar says:

    Hi all,
    This question would really do well if we have a forum here so that Cliff can rest a bit…LoL…

    Am doing a questionnaire to one of Dapp Export Tab Bar project. So i tweaked the UIView of the intended UIViewController and use NSURL to fetch the data from a remote site. So i have all this bunch of UILabels that represents the captured remote data. The thing is how do i refresh this data from Button->IBAction?

    I tried to implement the tutorial i got from http://www.youtube.com/watch?v=Y4zmM_Rqv6Y . The switching of views work but it the flushed out view covers the whole screen and my tab bar. So my question is how can i refresh aka switch to a refreshed view without losing my tab bar?

    • Cliff says:

      Dude :P , thats a 15 min vid, what’s the code you are using? :)

      Ah… if tab bar is also being covered and you are pushing a new view it’s because you are using the UITabBar object, and not the tab bar controller.

      Just make sure you are setting up the tab bar controller via ‘project options’.

      Otherwise just shoot through your source code as it will save the guessing :) .

  3. Is there a way to add a home button to the top of each page? My users will have to go back all the way to the home page…page….by….page. Also, I’ve created a button and I want the user to be able to tap it and then their email open up so they can email the address. How do I do that?

    Mark

    • Cliff says:

      Yeah, you can do a ‘home’ button. :)

      But you’ll need to change a bit of code :( .

      What you do is create the button and give it a ‘pop’ action.

      Then after you’ve exported to code, you change the ‘action’ for that button from:

      [self.navigationController popViewControllerAnimated:YES];

      to:

      [self.navigationController popToRootViewControllerAnimated:YES];

      Emailing is a little bit more involved.

      1. Import the MessageUI.framework
      2. Place #import in the header file
      3. Add the MFMailComposeViewControllerDelegate to the header file
      4. Create the MFMailComposeViewController object to send the mail when button is tapped.

      Hmm… I’m just gonna create a tutorial for this, as I doubt those 4 steps help you at all :S.

  4. Shawn says:

    Not sure if this has been answered but can I create an app from my Iphone from start to finish and sell it without using a mac pc?

    • Cliff says:

      Sorry man :( , the short answer is no.

      The long and convoluted answer is ‘yes’.

      But my personal recommendation is you do what I did when I first started making iPhone apps and pick up a cheap mac mini :) .

  5. teamstar says:

    Hi,
    before i continue i would like to apologize if i sound stupid. I’m a newbie in iOS app. In fact i find that your app is the missing link that Xcode should have to make learning and producing easier and efficient.

    I use Dapp to just create the whole skeletal structure of the entire project. i just use whatever images i have in my iPad album (yes i’m using iPad so that it would ease me visually, though i can’t wait for the actual iPad version to be released). I use ‘blabalblablaa’ just fot the label and other text placement.

    The thing is this:

    I’m trying to come up with an app : content (table view) -> View (individual views based on the clicked content page)

    I named my content page (table view), ‘Content’ and one of the view (just created one view for testing purposes), ‘Wn_n01.

    So naturally, the exported code would have Content_PageViewController.h, Content_PageViewController.m, Content_PageView.h, Content_PageView.m, Wn_n01ViewController.h, Wn_n01ViewController.m, Wn_n01View.h, Wn_n01View.m.

    I’m trying to look for Wn_n01 in Content_PageViewController.m and Content_PageView.m but i can’t seem to find it. I want to add Wn_n02, Wn_n03 etc to the available template since ‘Content’(table view) already has the slots for the additional files i want to manually link into Xcode.

    Thanx in advance.. :)

  6. teamstar says:

    is Dapp compatible with Xcode 4.3?

  7. Salih says:

    i tried copy paste to Text View but it didn’t worked
    i copied from safari or notepad but couldn’t paste.
    is it limited in lite version or there is another way for it.
    app copy paste its own texts but not pasting from outside.

    • Cliff says:

      ack.. :( … sorry mate.

      Hmm… not sure why this wouldn’t work to be honest.

      And there is nothing different in that regard from lite or full version.

      Best advice is to do any copy/pasting once you export to code, much faster :) .

      Easy way is to put in some line of text that you can then search for and replace on your computer with the text from safari/notepad.

      Although only catch is that only full version supports export to code :S…

      sorry mate :( .

  8. teamstar says:

    Does Dapp support SVG graphics in ImageView?

  9. ahmet says:

    I built up search button in Dapp, but when I opened it in XCode and run it, it is not working properly.
    My aim is using search for all in my texts, how can I make it?

    • Cliff says:

      Sorry ahmet :(

      There’s more involved with hooking up the search bar to your data.

      Interestingly enough, the search bar apple provides is just a text field with some extra features.

      It doesn’t actually do any searching at all.

      What it does provide is delegates so that you know when the user has entered information in and when the user taps the search button.

      But unfortunately, it’s up to ourselves to return the correct data to the user (based on their search results).

      I can give you some pointers on how to put this together but you’ll need to give me a bit more details on what type of action you want to occur if the user searches for something and it is within your texts.

  10. Chelsie says:

    About the Navigation Bar and other questions:

    1. For the navigation bar, when I turn on the Left and Right Buttons, and do any standard settings that the Dapp app allows me to do, I can’t push or pop the buttons. Its just an empty button I can click on but I can’t do anything with. I can’t set any Actions to it, is there a way to do that?

    2. Is there a way to color a Button? Like not the background of the button but the button itself, WITHOUT having to create a custom button? Because I like the round-ness of the button but I can’t color it except for its background, anyway to color it?

    3. In the Live Preview, say, I want to create a section where I click on something and I want it to save to the “Home” screen. Does the Live Preview allow me to physically see that? If so, how?

    For example:

    “Home” Screen>”Pick an Option” Screen with a “save” button in the upper right hand corner…user picks “blue” and clicks “Save”>back to “Home” screen and “Blue” appears in the TableView. Know what I mean?

    Thank you in advanced,
    Chelsie

    P.S. I guess I should tell you I know really nothing about coding, guess Im looking for a way around it as much as possible haha lol Sorry to be so complicated….

    • Cliff says:

      1. Doing update now, so will see if i can integrate the ‘navigation bar’ with the ‘navigation controller’… Which is why you can’t do actions on nav bars :( .

      2. Nope… afraid not :( . That round button is technically a fixed image and doesn’t allow different colours to be applied to it. Best thing for buttons really is to use custom images. Apart from that, there is a way around it by using Quartz 2D code.. heh… but that’s only going to get you a straight line round button which doesn’t look as good as apple button anyways :/

      3. Cool, thx for the explanation… was raising an eyebrow there :P …. ok, you are talking about being able to pass data around. As you can imagine, there are a ton of variables here… so I can’t promise bringing a feature like this in but I am looking at gradually bringing in a bunch of features that allow some level of data manipulation and a background db, which is what you really want if you are passing around data :) .

      • Zoyt says:

        Alright… About #3 – I’ve wanted variable for a while. Just simply create a variable that anything can read or write. Brings up a lot of bugs, but would be great… But just another aspect to add…

    • rfawcett39 says:

      Chelsie-

      I understand this comment is submitted quite a while after your question. Sorry. However, I have a way for you to get the roundness of the “Rounded Rect” button, and still use a custom button. Basically, what you have to do is to add a “Rectangle View.” Set the background color, and the corner radius to 10. Then, send the object to the back (double tapping on it < send to back). Now, implement a custom button. Set the background to clear. Make the button the same exact size as the Rectangle View. Now, overlay the custom button over the rectangle view. Change the color of the rectangle view, and it will have a background color. Also, you can change the color of the border color of the rectangle view. Problem solved! Reply if you have any questions.

      -rfawcett39

      • Cliff says:

        That is one method :) .

        Another way is to design your own custom button in your favourite image editor (MSPaint, Gimp etc.) and then bring that over to your Dapp project.

        You can then set the image of the custom button to what you created.

        Thx for the tip ;) .

  11. Gio says:

    Hey Cliff, i am also making an app for my high school curriculum. My teacher wants to know how we could put music on our app?

  12. David says:

    Hi,
    Very new to iPhone development. Trying to use DAPP to learn. Anyway made a simple view with 2 TextFields and an ok button. I cannot figure out how to get the data from the TextFields when the ok button is pressed.
    Do you have an example using DAPP of getting user input from a textfield?
    Thanks

    • Cliff says:

      Sorry about that :(

      I made a decision that I sorta regret now to split up the views and view controllers when exporting to code.

      Best thing to do to get access to those text fields is to copy over the ‘load methods’ for the textfields you want to access from the View to the ViewController. Then you just need to put in your object declaration in the header, so that you can access it from wherever in the class file.

      For example (these are just pointers really):

      MyViewController.h
      UITextField *myTextField;

      MyViewController.m
      [self loadMyTextField];
      NSString *string = myTextField.text;

      Hopefully that’s clear enough? :/

  13. Jason P says:

    I just finished building a tabbed app with Dapp and I din’t have to write any code inside xcode Thank you.
    Now I want that app to rotate to landscape mode. Can you give me any idea how to do this? Any weblinks or tutorials would help.
    Great App.

    • Cliff says:

      To allow rotation of the screen you need to use a few delegate methods. Good news is that all your ViewControllers (Pages) already have access to these.

      The main one to use is:

      - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
      // Overriden to allow any orientation.
      return YES;
      }

      Just copy/paste it into your code. That will allow any interface orientation.

      But then comes the tricky bit, as you will need to update the size and position of all your objects whenever the rotation changes.

      Best part to do this is in the following method, just copy/paste it in as well.

      - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation duration:(NSTimeInterval)duration {
      // Here is where you want to reposition your objects, depending on whether the screen is rotating to portrait or to landscape.
      }

      Because Dapp splits up Views and View Controllers, I actually advise that you copy over the objects that need to be updated from the view so you can directly manipulate them.

      Other useful delegates to be aware of are:
      - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
      // Called once the device has finished rotating.
      }

      - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
      // Called immediately before the device starts to rotate.
      }

      Good luck! ;)
      Cliff.

  14. Matthew says:

    Cliff:

    I love the Dapp app — well worth the 9.99. However, I am having a hard time trying to find out how to transfer images in .png that I created, to my ITune’s Dapp folder, or creating a new folder to house my .pngs on iTunes.

    Any idea if there is a You Tube tutorial on how to upload images from iTunes store to my Dapp folder?

    Also, any ideas on a Dapp app for IPad coming soon??

    Thanks!

    Matthew

    • Cliff says:

      Tutorial:
      1) Connect your iPhone to your computer and start iTunes
      2) Select ‘Apps’ tab at top
      3) Scroll down list of apps and find Dapp
      4) Drag and drop files from your computer to the Dapp home folder ;)

      Gonna be honest, iPad app ain’t gonna come any time soon.

      I’m currently working on getting investment capital full-time and taking care of newborn ;) .

      Part of the point of getting the capital is to bring on some staff so I can get an iPad version of Dapp out for you guys.

      I’ll keep you in loop on blog :) .

  15. Tony says:

    Hi Cliff

    i posted a question yesterday regarding pushing different views

    I figured it out .. no need to reply back to my original posting

    all good here

    thanks

  16. Joel says:

    Hello,

    Im having trouble setting the mapView to show a specific coordinate when that view is loaded. Any insight or links would be much appreciated. This app is awesome Im hooked at this point, thank you & happy new year!

    • Cliff says:

      Hmm.. just answered this elsewhere, should probably turn it into a FAQ post.

      Yep, just did that ;) . In FAQ, under ‘How to make Map Annotations’

  17. Steven says:

    Trying to figure basic navigation out from page to page. I have a Tab working but cannot get a Navigation Bar working. I’ve watch tutorials but the “navigation Controller” option in the “Page Options” section is not there as in your tutorials.

    • Cliff says:

      Navigation Controller option in pages was dropped due to it not being needed, but basically all it did was hide the nav controller on some pages… something that wasn’t very intuitive and wasn’t working correctly.

      Generally you want to be choosing whether or not to have a nav controller throughout your app, and not hide/show it… looks ugly ;) , and not very UX friendly… If it absolutely has to be hidden on some pages, then there is code for that ;) .

      BUT!… your question was navigation between page to page.

      For going forward, these are handled by ‘actions’, I’ve got a vid tutorial on this in the list ;) .

      But basically what you are doing is hooking up a ‘push’ action to buttons, toolbars or tableview cells to place a new page on the ‘stack’ and show it. That stack is the ‘navigation controller view controllers stack’.

      By default users will be able to then press the ‘back’ button to go back a level on the stack.

      Nav controller is automatically created for you :) .

  18. Matt says:

    Hi!

    I just tried the lite version and made a mockup of an upcoming app. Liked DAPP a lot, so I bought it, but I can’t figure out how to get my already finished mockup from DAPP Lite to DAPP.

    • Cliff says:

      Hi Matt :) .

      Hope you had a good Christmas – I’ve been away for a while, so sorry about the delay.

      Yep. Just go to settings in Dapp lite and export a backup of your files.

      Then use iTunes file sharing (with your device connected) to get access to the backup that was exported and just copy it over to your desktop, and then copy it into the Dapp home folder using iTunes file sharing again.

      From there, just restore the backup on the full version of Dapp :) .

  19. Kristin says:

    Hello
    We are using DAPP as part of our high school curriculum. I are having an issue with the “Publish to PDF” function. It seems that my new ipod touch 4 is crashing when trying to publish. This is a new device with wireless connection. When attempting to publish, the screen hesitates and returns to the DAPP homescreen without the pdf being sent to the specified email. I have attempted to use several emails. Is there something that would hinder the publishing process?
    Thanks in advance for your time and energy

    • Cliff says:

      Ack, that sucks :( .

      Ok, create a backup (in settings), and then connect your device to a computer with iTunes and grab a copy of the backup file (using iTunes file sharing).

      Send it to me at cliff@kerofrog.com.au and I’ll create the PDF’s for you… and test it within Xcode to see where the issue is. Just shoot me an email as well if you are having any trouble using iTunes file sharing ;) .

  20. Geoff says:

    Thanks Cliff. Great App too. On more question. How do you add in a web link to a page? So if I wanted to add a button to register for a event and it takes them to a web site?

    • Cliff says:

      [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.mywebsite.com"]];

      That’ll open up the safari browser on the device and take your user to the page you want :) .

  21. Geoff says:

    Hello Cliff. Great App..
    How to I link to other pages using the table view? I am sure it is not to difficult.

    • Cliff says:

      Yep, it’s pretty easy. :) .. although not necessarily quickly accessible.

      Just select the ‘sections’ property once you are editing a tableview. From there, you can select the ‘section’, and drill down to the rows in that section. Once you have selected a row, you will also have the ability to create actions for that row… ;) … as well as a bunch of other customizations.

  22. Ken Heins says:

    I downloaded Dapp to iTunes (the site link leads to iTunes rather than to App Store, hmmm not sure why it did that.

    In any case, the Dapp application does show in iTunes, but it will not transfer over to my IPhone.

    ? what now?

    • Cliff says:

      iTunes on your computer is the ‘conduit’ for downloading apps to your Mac/PC. :)

      The way to get Dapp over to your iPhone is to sync your purchases with your iPhone. This will automatically bring them across. ;)

  23. DoDD says:

    Hi Cliff, it’s me again with another question.

    I’m trying to correct an issue with a 3rd party code that has nothing to do with the code generated in Dapp. However, in order to make this 3rd party code work the way I want, I need to use switch case.

    In the Dapp generated code I see you put a comment on the View Controller for example

    #pragma mark -
    #pragma mark Action Methods

    - (void)musicActionForSection:(NSInteger)section andRow:(NSInteger)row {
    // Unable to use ‘switch case’ due to issue with initially instantiating objects in case statements
    if (section == 0 && row == 0) {
    CCRadioViewController *controller = [[[CCRadioViewController alloc] init] autorelease];
    [self.navigationController pushViewController:controller animated:YES];
    } else if (section == 0 && row == 1) {
    NetlabelsViewController *controller = [[[NetlabelsViewController alloc] init] autorelease];
    [self.navigationController pushViewController:controller animated:YES];
    }
    }

    Problem is is that my 3rd party code does not behave as expected and I got a suggestion from someone who was experiencing the same issue to use switch case to fix it. So I went ahead and changed that view controller section to:

    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
    {
    switch (([indexPath section] * 10) + [indexPath row])
    {
    case 0:
    {
    NSLog(@”Pushing view ‘CC Radio’”);
    [[self navigationController] pushViewController:radioView animated:YES];
    break;
    }

    case 1:
    {
    NSLog(@”Pushing view ‘Netlabels’”);
    [[self navigationController] pushViewController:netlabelsvc animated:YES];
    break;
    }

    default:
    {
    NSLog(@”Invalid menu option.”);
    break;
    }
    }
    }

    However, as you might have guessed, the code compiles fine but when the simulator tries to open the table with the view controller with switch case, it crashes on that very specific breakpoint (the very beginning of the code bove).

    So, why exactly can’t I use Switch case? What do you mean exactly with “due to issue with initially instantiating objects in case statements”?

    Is that an issue with apple or Dapp?

    Thank you Best regards

    • Cliff says:

      It’s technically an issue with Objective-C, but I believe it also has to do with the way switch statements work. You can still use switch statements but the way to fix it is to use a garbage value before you instantiate your objects. Maybe not the most eloquent way ;) , but it works for me.

      NSInteger garbageValue = 0;
      switch (myValue) {
      case 0:
      garbageValue = 0;
      // Instantiate my object here
      break;
      default:
      garbageValue = 0;
      // Instantiate my object here
      break;
      }

      Now, all that being said it looks like your code is just pushing a view controller which doesn’t need a ‘garbageValue’ prior to the call in a switch statement. Which means your problem might be something else.

  24. Kristy says:

    Hi, I’ve been reading about DAPP, but have not bought it yet. Before I purchase DAPP, can you please tell me 1) Will it make games, such as a casion type slot machine games??? 2) I would like to make an app where a person can upload a photo into the app and fill in the appropriate lines about themeself, can this be done???

    • Cliff says:

      HI Kristy :) .

      In terms of a casino type slot machine game, Dapp could create the layout and all the UIObjects for you, but the code to spin the ‘slot machine’ would need to be done by yourself. Generally with games you don’t want to be using UIKit anyways and should be looking at other solutions. I personally used Cocos2d when I first started making games, it’s worth checking out ;) .

      As for an app where a person can upload a photo, as before, you could use Dapp to create the layout and all the UIObjects for you, and also create the button to upload a photo and the textview where they can fill in the appropriate lines for themselves. But, you’ll need to write your own code to allow the user to upload the photo and also your own code to store the lines (probably a database) that they fill in about themselves.

      All cool features by the way and things that I’m looking into for future versions of Dapp! ;)

  25. dgv says:

    Ah, thanks for the selected row explanation. And silly me, just found the table action bit in the drilldown as well. Thanks for the quick reply. Great product, i really enjoy it.

  26. dgv says:

    I also sure would love to see something on how to use sqlite with dapp output, as well as more documentation around the table settings menu…for example, what does the selected row and selected section options in that edit tableview menu do? also (feature request) would love to add actions to table view items :) thanks

    • Cliff says:

      Hmmm… will do!… I’ll add sqlite tutorial as one of the requests.

      Yeah, the table settings got greatly expanded with the last update. Drill down in the ‘sections’ property in tableviews to access a ton of options specific to cells and sections. Also, if you drill down to a specific cell (row), you can link up actions to that cell.

      Selected row and selected section are mainly used for mockups, it’s simply the initial selected section/row.

  27. Gazwa says:

    Hi Cliff,
    Thanks for ur wonderful n useful app, I was wondering how can I can create a zoomable image in my app.
    Cheers

  28. Jack says:

    I thought I saw a reference to SQLite on the site previously. Now I cannot seem to find it. Am I imagining things??

    • Cliff says:

      No you’re not mistaken ;) . It was actually in one of the original tutorials that I had this grandiose plan to write a complete project + tutorial which included sqlite. Something that I never completed :S.

  29. Carl says:

    i would be very grateful!!!by the way thank you for this explanation!!!

  30. Carl says:

    Hi Cliff, i think Dapp is great!i have just some problems with the search bar…i have put a table view in a tab and the search bar in another tab…why the search bar doesn’t work?!?!?

    • Cliff says:

      Dapp will setup the Search Bar for you. However, the search bar object by itself still needs to be hooked up to a delegate which allows you to respond to events such as the user entering text in the search bar. (Check out UISearchBarDelegate class reference in the Apple Docs)

      It is then your responsibility to respond to these events. Part of the reason for this is that a search bar could be linked up to a large variety of data sources (such as a database, text file, arrays etc…). But basically all you are doing is taking what the user is typing in the search bar and handling this ‘search string’ yourself.

      In a way this allows the UISearchBar to be incredibly flexible, so I can see why Apple did it this way. I might see if I can write a tutorial on this. ;)

  31. Belal says:

    G’day mate, I bought ur great application and now I have got a problem exporting the code on Xcode 4.1 because it has different folders and sub-folders than the one on your youtube video tutorial. Can you help plz thank you

  32. Brian says:

    Cliff,

    I love Dapp, it’s a great app. Is there any work around for XIB files. I’m finding it very hard to build the app in Dapp then export to XCODE only to be stuck into that interface. Once you start coding interface changes are sometime necessary, any suggestions?

    • Cliff says:

      Yep, do the interface changes in code ;) . It’s what I do (I never use Interface Builder) and Dapp is a great way to learn how to do this.

      The long answer is to bug Apple to release the specs on XIB files so I can automatically generate these for you using Dapp. I’ve actually officially made this as a feature request from Apple.. so all I can do is wait and hope they release it.

  33. Vance Cochrane says:

    Is there a way to transfer a design from one phone to another?

    • Cliff says:

      Technically, yes. You can create a backup of Dapp (that gets saved to iTunes file sharing Dapp app folder). You then copy this backup to the desktop and connect your other phone. Drag the backup to the Dapp app folder on the 2nd phone. Then within your 2nd phone, you can restore the backup.

      Admittedly this won’t allow you to transfer a specific design, but it does allow you to at least move Dapp and all your data to a new phone.

Leave a Reply