How to view PDF on iPhone using Dapp and Xcode 4

May 22, 2012 0

Had a question about this via email, so thought I would quickly answer it here :) .

Really easy to do actually.

Step 1

Use Dapp to put together your app.  For the pages that you want to view PDF’s, just drop in a WebView object.

Step 2

Copy over any PDF’s you want to view across into your project.  Alternatively, you can also just point to PDF’s online if you want to do it that way :) .

Step 3

Export your app to code, and then within Xcode, you want to find the load method for your WebViews.

For example, if you named your web view ‘PdfView1′ then just do a search in your project for ‘loadPdfView1′.

Step 4

Add the following code to the load method -

NSString *pdfPath = [[NSBundle mainBundle] pathForResource:@”pdfFileName” ofType:@”.pdf”];
NSURL *pdfURL = [NSURL URLWithString:pdfPath];
[pdfView1 loadRequest:[NSURLRequest requestWithURL:pdfUrl]];

As mentioned, you can use a web URL by just replacing the pdfPath with the web location :) .

 

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

iOS Movie Player tutorial with Xcode 4 and Dapp

May 5, 2012 3

A while back I did a teaser video of a new movie player features that’s coming into the next update to Dapp.

I still haven’t released that update :( – so to tide you in the meantime, I’ve created a tutorial on how you can put movies and sounds into your iOS apps :) .

During the first part I take you through a quick run-through of Dapp to create the interface for us and to minimise the amount of code we have to write.

Second part of the vid I take you through the code.

Which is actually quite easy :) .

Of course, you are also free to just download the attached project files to grab a copy of the code to see how it’s done.

Otherwise watch the vid and learn how to code it yourself :) .

iOS Movie Player Project Files

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

How to add an Interactive MapView to your iPhone project – Dapp + Xcode 4 iOS Tutorial

May 1, 2012 0

A quick tutorial where I show you how to use Dapp to create our interface, including the mapview, segmented control, toolbar and navigation bar.

We then jump over to the exported code and Xcode 4 to modify our code to allow our segmented control and toolbar to interact with the mapview.

You can cheat and just download the whole project :) , but either way. Worth taking a look to learn how the code for these objects work ;) .

Feel free to message me for any future tutorials you’d like to see.

Download the MapView Project files here :)MapView Project

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

How to Send Email – Dapp + Xcode 4 iOS Tutorial

Apr 30, 2012 0

Quick little tutorial on how to add in a bit of code to your Dapp created apps to allow users to send emails :) .

All good if you don’t have Dapp as this tutorial will help you out too ;) .

If you want the shortcut then the attached sample project also includes the code for sending emails that you can rip.

Source Code: SendMail Xcode 4 Tutorial with Dapp Source Code

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

Good or bad iOS dev?

Mar 18, 2012 1

Something has been worrying me recently…

And that is the sight of so many bad iOS developers out there.

In fact I recently came across a poor company that had gone through two different iOS devs that just couldn’t do the job.

I came in after approximately 5 months of this, and yeah.

The code was so bad I had to start from scratch!

I shouldn’t be surprised, I recall that I myself came across a fair few bad developers when I was looking to contract someone last year.

And boy, they were so bad that I almost gave up on finding a qualified dev.

But the good news is that there are great devs out there too! :)

Bad news is that it really takes a great dev to spot another great dev. :(

Anyways, much more detail provided in this post over at Kerofrog.

Hope you learn something valuable :) .

Four checks to make sure you hire a great developer

PS: If you guys ever need a dev in your corner to check if your hired devs are good at their job, then I can be that dev :) .

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

New Movie Player feature teaser and steps for how to use it

Mar 5, 2012 3

Quick little vid I put together showing the new movie player feature that I’ve finished working on :) .

Still got a few more features to put into the update before release, but until then, I wanted to show everyone how it all works :) .

Stay tuned as I’ll also be showing you how you can add in streaming youtube videos into your apps, using Dapp and all without code. :)

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

How to hide the Tab Bar in iOS

Jan 6, 2012 4

Ok, real basic tutorial this time.

One line of code! Literally.

And the magic line of code is…

1
2
3
4
5
6
MyViewController *controller = [[[MyViewController alloc] init] autorelease];
 
// This is the line! :)
controller.hidesBottomBarWhenPushed = YES;
 
[self.navigationController pushViewController:controller animated:YES];

That’s all you need :) .

That’s fine and all if you’re a coder, but not all of us go tap-tap on keyboards each and every day (and especially night!), whilst sucking down on cans of cola (really bad for your teeth by the way) and chomping down on pizza as we stare like zombies at our screens.

Ah, fun times ;)

Anyways, I’ve also put together a video tutorial that’ll show you an example Dapp exported project and the steps to find the exact spot to put our little line of code that hides our tab bar :) .

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

Bugger it! Get all my skillz for FREE!

Dec 27, 2011 4

I love to write.  I love to teach.

So I figured, why not just teach everyone everything you’ve learnt over the last 4 years on the app store.

And the over 15,000 dollars worth of investments in business and personal development courses, books, audio, videos and seminars.

:) .

So I am :) .

I’ve already written a large bunch of content of over 20 posts.  Just gonna seed one each day, and keep em topped up of course ;) .

The site for this is kerofrog.com

Just two up so far, but yeah, if you want to learn about everything I’ve done wrong! lol…

Then check out the free report on the right hand side of the site.

It goes through the 8 biggest mistakes yer gonna make and how not make them… as I did.. :P

Some bloody awesome info there, so check it out.

PS: I also put bought some nice pics to put in the report to make it more interesting ;) .

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

ImageView Zoom Tutorial for iPhone & iPad

Dec 16, 2011 0

Hey guys :) .  Welcome to the ImageView Zoom Tutorial for iPhone & iPad.

Ok, this vid shows you how you can take your image view (uiimageview) code that is created for you by Dapp and turn them into zoomable images for iOS (iPhone & iPad).

Of course, if you just want to create zoomable images (scale, pan) in your own code then you can use this too.

As a special treat I’ve also included a custom class that you can use in your projects :) … so if you are feeling lazy, just grab the custom class and drop it into your code.

—-> KFImageZoomView class files. <—-

For those who are extra lazy, here is the custom class code you can copy/paste and learn from.. or just use in your own iOS projects! :) .

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// You are free to do whatever you want with this code :)
// Cliff, Kerofrog
 
#import <UIKit/UIKit.h>
 
@interface KFImageZoomView : UIScrollView <UIScrollViewDelegate> {
    UIImageView *imageView;
}
 
@property (nonatomic, retain)   UIImageView     *imageView;
 
#pragma mark Initialisation
- (id)initWithImageNamed:(NSString *)imageName atLocation:(CGPoint)location;
 
@end

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// You are free to do whatever you want with this code :)
// Cliff, Kerofrog
 
#import "KFImageZoomView.h"
 
@implementation KFImageZoomView
 
@synthesize imageView;
 
#pragma mark - Memory Management
 
- (void) dealloc {
    [self.imageView release];
    [super dealloc];
}
 
#pragma mark - Initialisation
 
- (id)initWithImageNamed:(NSString *)imageName atLocation:(CGPoint)location {
    self = [super init];
    if (self) {
        // Assign the delegate
        self.delegate = self;
 
        // Create our image view using the passed in image name
        self.imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:imageName]];
 
        // Update the ImageZoom frame to match the dimensions of passed in image
        self.frame = CGRectMake(location.x, location.y, 
                                self.imageView.frame.size.width, self.imageView.frame.size.height);
 
        // Set a default minimum and maximum zoom scale
        self.minimumZoomScale = 0.5f;
        self.maximumZoomScale = 3.0f;
 
        // Add image view as a subview
        [self addSubview:self.imageView];
    }
 
    return self;
}
 
#pragma mark - UIScrollViewDelegates
 
- (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(float)scale {
 
}
 
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView {
    return self.imageView;
}
@end
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 :).

How to export Dapp iPhone generated code files to Xcode 4.2 Video Tutorial

Oct 14, 2011 0

A few users having trouble with the latest release of Xcode. Xcode 4.2, which came out recently with iOS 5.

How cool is Siri?! :)

Anyways, the process is actually easier than it was in Xcode 4, as we now have the option to create an ‘Empty Application’ that has no reference to a XIB file at all.

There is also an awesome new feature called ‘Automatic Reference Counting’ (ARC) in Xcode 4.2 that essentially allows us to ignore memory management. Great feature for novice developers.

Dapp doesn’t support this feature yet :) .. because the generated code has all the needed memory management code that ARC really doesn’t like. Any ‘memory management’ related calls will cause a build error.

I can see the value this would have for our novice programmer users, so I’ll be making sure the next version of Dapp has the option of exporting code that has no memory management included.

Enjoy the very very brief video tutorial!

Oh!.. I’ve said this about 50 times in the tutorial ;) , but it’s very short because it’s a modified version of our Xcode 4 Advanced Hello World tutorial for Xcode 4.2. The original tutorial will take you through how to use the tableview object to create what is shown in this tutorial. It can be found at:

Creating an Advanced Hello World Xcode 4 iPhone Project with Dapp Video Tutorial

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