Admin

Dapp & Xcode 4 iOS SDK Tutorials

Aug 1, 2010 35

I’ve created a list of all the tutorials that are available so they can more easily be referenced :) .

You can view all tutorials by category at – Dapp iPhone SDK Tutorials

If you are looking for support, then you can contact me at:

dapp@kerofrog.com.au

I check my emails every morning, so you should get a very speedy reply :) .

Otherwise, the following is the current list of tutorials ordered by their publish date.

Tutorials

 

Planned Tutorials

A rundown of tutorials I'm planning to post on the website. Partly here so I can track what needs to be done and so my awesome users can know what tutorials are coming soon :).
Title - DescriptionETAStatusRequested By
T1UIScrollView Tutorial

A tutorial that will show you how to create a UIScrollView in code, and add a few objects to it.
6hCompletedSanjar
T2Dapp Style Add New Row in TableViews Tutorial

Showing you how I create the 'add new Design' etc. rows in TableViews within Dapp.
6hDavid
T3Hide Tab Bar Controller

Going through the code needed to hide a Tab Bar Controller (Tab Bar) on individual pages within an app.
4hCompletedJason
T4UISearchBar Tutorial

Showing you how to setup a UISearchBar and respond to user events in the search bar.
10h
T5SQLite Tutorial

An sqlite tutorial showing how you can hookup Dapp to a Sqlite database, and use some basic commands.
48h
T6MKMapView Tutorial

Just to address how to add frameworks to Xcode 4, especially for users who use the MapView from Dapp.
5hMike
T7iAds Tutorial

Tutorial on how to integrate iAd into your Dapp app
15hTori
T8Get Image from User Tutorial

Tutorial that will take you through the steps to prompt for an image from a user, and get them to either select one from their photo library or take a photo themselves.
7hKristy
T9Background Music Tutorial

How to put background musing into your app
8hWk2010Channel
T10Play Video

Quick tutorial on how to embed video into your Dapp apps
8hMike
T11Multi Font & Color Custom Object

This is gonna be fun :)
16hMichael
T12Sideswipe through series of image views10hColin
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 :).

Frequently Asked Questions

Aug 1, 2010 85

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

 

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 :).

Feature Requests

Aug 1, 2010 76

Want to see a certain feature in Dapp?  Then vote below!

This will help me choose what to add next.  If a feature you would like to see is not listed, then please leave a comment and I’ll add it. :)

Otherwise you can contact me directly at:

dapp@kerofrog.com.au

I check my emails every morning, so you should get a very speedy reply :) .

Update: Also got a new option I’m trialling which is basically very cheap dev services :) -

Also, don’t forget to check out:

 

 

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 :).

In Development

Aug 1, 2010 14

This is where I can keep you guys updated on what I’m currently working on :) .  I’ll be adding to this as time progresses.

Feel free to post any comments you may have below, or you can also suggest new features here - Feature Requests

New Features

A description of the new features I am currently working on.
Title - DescriptionETAStatusRequires
N1Tell me what to work on next! Visit our feature requests section to request a new feature.
N2iTunes File Sharing Export to Code

This will allow a choice of where to export, either to iTunes file sharing or via email.
6h

Minor Features

Minor tweaks, updates and features that I am adding to Dapp.
Title - DescriptionETAStatusRequires
M1View Controller Titles

By default, the view controller title has an underscore added if there is a space within Dapp. This was required for creating the files but I plan to update it so that the exported code Navigation Controller titles do not have that ugly underscore added in as well.
3h
M2Hex Color Entry

Ability to enter in the hex value for a colour
8h
M3Button Fonts/Sizes

The ability to modify the size, font and colour of rounded rect button titles.
6h
M4Table View Cell Heights

Ability to specify the height of individual cells
8h
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 :).

Planned Updates

Aug 1, 2010 21

This is the list of updates I have planned, which is still growing at the moment to give you guys (my awesome users) a chance to vote on what you want me to add next.  Please visit the feature requests page if you would like to request a new feature.

I will be adding to this as time progresses.  Generally if a new feature gets requested enough, then it will be moved here.

Otherwise feel free to post comments about the planned updates below :) .

Planned Updates

A description of updates that are planned for future versions of Dapp.
Title - DescriptionETAStatusRequires
P1Table View Cell Height

A property that will allow users to adjust the height of table view cells.
3h
P2Hide TabBar and Navigation Bar Page Options

Basically just an option to hide the navigation bar and tab bar for a certain page. Allowing a type of 'modal' page.
4h
P3UIScrollViews

I've come up with a way that ScrollViews could be implemented, and still allow users to add subviews to the scrollview. Think a gallery of sliding images :).
3d
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 :).

Known Bugs

Aug 1, 2010 45

This is the list of currently known bugs as of the latest version (1.3).

If you think you may have found a bug, then please report it here! :)  I’m passionate about making Dapp a bug-free zone.

I keep track of any exceptions generated by Dapp but I still rely on users sending me crash reports so I can track down the source of the issues.  If Dapp has ever unexpectedly shutdown on you then please send through a crash report to me. Details of how to do this can be found in our FAQ.  Doing this will ensure that this shutdown will not happen again in the next update of Dapp :) .

Of course, you can also just contact me at dapp@kerofrog.com.au to report a bug.

A status of Open means that I haven’t fixed the bug yet.  A status of Closed means I have fixed the bug in the current beta version of Dapp.

Bugz!

A list of bugs in the latest version of Dapp :(.
Title - DescriptionReason / ReplicateResolutionStatus
B6Adding more than one segmented control to a page will cause them both to not work in Live Preview.Open
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 :).

Support

Aug 1, 2010 228

Please check out our Dapp Tutorials or Documentation to learn more about Dapp.

You can also leave a message below or contact me at:

dapp@kerofrog.com.au

I check my emails every night, so you should get a very speedy reply :) .

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 :).