Open Source: Easy Base64 Encode/Decode And AES 256 Encryption Library

A pretty common problem is the need to communicate using AES encrpytion.  While Base64 encoding is fairly easy to implement AES encryption/decryption with the CCCrypt library is not terribly straightforward with the iOS SDK and numerous tutorials have been written on the subject.

I found a very simple to use encryption library from Hiroshi Hashiguchi that wraps the CCCrypt librar and allows you to very easily perform Base64 Encoding/Decoding with AES 256 bit support.

You can find the library on Github here:
https://github.com/dev5tec/FBEncryptor

Included on the Github page are full instructions, and there is a sample project including demonstrating use of the library.

©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail

Open Source: Easy Base64 Encode/Decode And AES 256 Encryption Library

A pretty common problem is the need to communicate using AES encrpytion.  While Base64 encoding is fairly easy to implement AES encryption/decryption with the CCCrypt library is not terribly straightforward with the iOS SDK and numerous tutorials have been written on the subject.

I found a very simple to use encryption library from Hiroshi Hashiguchi that wraps the CCCrypt librar and allows you to very easily perform Base64 Encoding/Decoding with AES 256 bit support.

You can find the library on Github here:
https://github.com/dev5tec/FBEncryptor

Included on the Github page are full instructions, and there is a sample project including demonstrating use of the library.

©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail

Open Source: Beautiful Tab Selector And Tab Bar Creation Library

Last week I mentioned the LightMenuBar customizable menubar implementation which allows for a simple customizable menubar to be added into iOS apps.

I found a project from Jason Morrisey known as JMTabView that allows you to add a beautiful dark colored tab selector to the top of your apps, and also a equally beautiful tab bar to the bottom of your apps. All fully animated. The bars are drawn entirely using core graphics rather than images so they can easily customize to your content.

Here’s a screenshot off the upper tab view, and tab bar in action:

You can find the project on Github here:
https://github.com/jasonmorrissey/JMTabView

A great example of how to create some beautiful looking navigation.

©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail

Open Source: Beautiful Tab Selector And Tab Bar Creation Library

Last week I mentioned the LightMenuBar customizable menubar implementation which allows for a simple customizable menubar to be added into iOS apps.

I found a project from Jason Morrisey known as JMTabView that allows you to add a beautiful dark colored tab selector to the top of your apps, and also a equally beautiful tab bar to the bottom of your apps. All fully animated. The bars are drawn entirely using core graphics rather than images so they can easily customize to your content.

Here’s a screenshot off the upper tab view, and tab bar in action:

You can find the project on Github here:
https://github.com/jasonmorrissey/JMTabView

A great example of how to create some beautiful looking navigation.

©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail

Open Source: Beautiful Tab Selector And Tab Bar Creation Library

Last week I mentioned the LightMenuBar customizable menubar implementation which allows for a simple customizable menubar to be added into iOS apps.

I found a project from Jason Morrisey known as JMTabView that allows you to add a beautiful dark colored tab selector to the top of your apps, and also a equally beautiful tab bar to the bottom of your apps. All fully animated. The bars are drawn entirely using core graphics rather than images so they can easily customize to your content.

Here’s a screenshot off the upper tab view, and tab bar in action:

You can find the project on Github here:
https://github.com/jasonmorrissey/JMTabView

A great example of how to create some beautiful looking navigation.

©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail

Open Source: Beautiful Tab Selector And Tab Bar Creation Library

Last week I mentioned the LightMenuBar customizable menubar implementation which allows for a simple customizable menubar to be added into iOS apps.

I found a project from Jason Morrisey known as JMTabView that allows you to add a beautiful dark colored tab selector to the top of your apps, and also a equally beautiful tab bar to the bottom of your apps. All fully animated. The bars are drawn entirely using core graphics rather than images so they can easily customize to your content.

Here’s a screenshot off the upper tab view, and tab bar in action:

You can find the project on Github here:
https://github.com/jasonmorrissey/JMTabView

A great example of how to create some beautiful looking navigation.

©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail

Best Resources In iOS Development – June 27th 2011

Several great resources were shared on this site this week, especially for game developers using the Cocos 2D and Unity 3D game developers.

I also updated the Open Source iPhone Apps listing with 4 new open source apps, and repaired any dead links have now been repaired.

Here are the most popular new resources from the last week:

Tutorial: Developing 2D Games With Unity 3D – A great set of guides for developing 2D games with Unity 3D using 2D sprites for gameplay, and 3D models for background objects.

Tool: Open Source Visual Editor For Cocos2D – A free and open source visual tool for developing with Cocos2D.  A great time-saving tool.

Open Source: Simple Customizable Menubar Implementation – A lightweight library for adding easily customizable menu bars to the top of your Cocoa Touch apps.

Open Source: Beginners Map Kit Demo (Utilizing ASIHttpRequest, JSONKit, and MBProgressHUD) – An open source project for those learning to use the iOS Map Kit that utilizes several excellent open source libraries.

Open Source: Tiny Wings Style Cocos2D Game and the Tutorial: Creating A Tiny Wings Style Game With Cocos2D – which make a great tutorial on how to create a popular iOS game with some cool features like dynamic textures, and terrain.

Making A Great Looking App Product Page – A set of tips showing how a developer of several popular iOS apps enhances his product page to increase downloads.

Thanks for reading, please share and bookmark this page!

©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail

Best Resources In iOS Development – June 27th 2011

Several great resources were shared on this site this week, especially for game developers using the Cocos 2D and Unity 3D game developers.

I also updated the Open Source iPhone Apps listing with 4 new open source apps, and repaired any dead links have now been repaired.

Here are the most popular new resources from the last week:

Tutorial: Developing 2D Games With Unity 3D – A great set of guides for developing 2D games with Unity 3D using 2D sprites for gameplay, and 3D models for background objects.

Tool: Open Source Visual Editor For Cocos2D – A free and open source visual tool for developing with Cocos2D.  A great time-saving tool.

Open Source: Simple Customizable Menubar Implementation – A lightweight library for adding easily customizable menu bars to the top of your Cocoa Touch apps.

Open Source: Beginners Map Kit Demo (Utilizing ASIHttpRequest, JSONKit, and MBProgressHUD) – An open source project for those learning to use the iOS Map Kit that utilizes several excellent open source libraries.

Open Source: Tiny Wings Style Cocos2D Game and the Tutorial: Creating A Tiny Wings Style Game With Cocos2D – which make a great tutorial on how to create a popular iOS game with some cool features like dynamic textures, and terrain.

Making A Great Looking App Product Page – A set of tips showing how a developer of several popular iOS apps enhances his product page to increase downloads.

Thanks for reading, please share and bookmark this page!

©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail

Best Resources In iOS Development – June 27th 2011

Several great resources were shared on this site this week, especially for game developers using the Cocos 2D and Unity 3D game developers.

I also updated the Open Source iPhone Apps listing with 4 new open source apps, and repaired any dead links have now been repaired.

Here are the most popular new resources from the last week:

Tutorial: Developing 2D Games With Unity 3D – A great set of guides for developing 2D games with Unity 3D using 2D sprites for gameplay, and 3D models for background objects.

Tool: Open Source Visual Editor For Cocos2D – A free and open source visual tool for developing with Cocos2D.  A great time-saving tool.

Open Source: Simple Customizable Menubar Implementation – A lightweight library for adding easily customizable menu bars to the top of your Cocoa Touch apps.

Open Source: Beginners Map Kit Demo (Utilizing ASIHttpRequest, JSONKit, and MBProgressHUD) – An open source project for those learning to use the iOS Map Kit that utilizes several excellent open source libraries.

Open Source: Tiny Wings Style Cocos2D Game and the Tutorial: Creating A Tiny Wings Style Game With Cocos2D – which make a great tutorial on how to create a popular iOS game with some cool features like dynamic textures, and terrain.

Making A Great Looking App Product Page – A set of tips showing how a developer of several popular iOS apps enhances his product page to increase downloads.

Thanks for reading, please share and bookmark this page!

©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail

Best Resources In iOS Development – June 27th 2011

Several great resources were shared on this site this week, especially for game developers using the Cocos 2D and Unity 3D game developers.

I also updated the Open Source iPhone Apps listing with 4 new open source apps, and repaired any dead links have now been repaired.

Here are the most popular new resources from the last week:

Tutorial: Developing 2D Games With Unity 3D – A great set of guides for developing 2D games with Unity 3D using 2D sprites for gameplay, and 3D models for background objects.

Tool: Open Source Visual Editor For Cocos2D – A free and open source visual tool for developing with Cocos2D.  A great time-saving tool.

Open Source: Simple Customizable Menubar Implementation – A lightweight library for adding easily customizable menu bars to the top of your Cocoa Touch apps.

Open Source: Beginners Map Kit Demo (Utilizing ASIHttpRequest, JSONKit, and MBProgressHUD) – An open source project for those learning to use the iOS Map Kit that utilizes several excellent open source libraries.

Open Source: Tiny Wings Style Cocos2D Game and the Tutorial: Creating A Tiny Wings Style Game With Cocos2D – which make a great tutorial on how to create a popular iOS game with some cool features like dynamic textures, and terrain.

Making A Great Looking App Product Page – A set of tips showing how a developer of several popular iOS apps enhances his product page to increase downloads.

Thanks for reading, please share and bookmark this page!

©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail

How to Change background color after pressing Button in iPhone

In this application we will see how to change background color using button pressed. So let see how it will worked.  My previous post you can find out from here  ButtonPressed

Step 1: Open the Xcode, Create a new project using View Base application. Give the application “BackgroundColor”.

Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory structure to check out the content of the directory.

Step 3: Open the BackgroungColorViewController.h file and make the following changes in the file

#import <UIKit/UIKit.h>

@interface BackgroungColorViewController : UIViewController {

IBOutlet UIButton*firstButton;
IBOutlet UIButton*secondButton;
IBOutlet UIButton*thirdButton;
}

(IBAction)FirstButtonPressed:(id)sender;
(IBAction)SecondButtonPressed:(id)sender;
(IBAction)ThirdButtonPressed:(id)sender;

@end

Step 4: Double click the BackgroungColorViewController.xib file and open it to the Interface Builder. First drag the three Round Rect Button and place it to the view window. Select the first button and bring up Connection Inspector and connect Touch Up Inside to the Files Owner icon and select FirstButtonPressed: method. Do the same thing for other two buttons and select SecondButtonPressed: and ThirdButtonPressed: method. Now save the .xib file, close it and go back to the Xcode.

Step 5: In the BackgroungColorViewController.m file make the following changes:

#import "BackgroungColorViewController.h"
@implementation BackgroungColorViewController

(IBAction)FirstButtonPressed:(id)sender
{
self.view.backgroundColor = [UIColor greenColor];
}

(IBAction)SecondButtonPressed:(id)sender
{
self.view.backgroundColor = [UIColor yellowColor];
}

(IBAction)ThirdButtonPressed:(id)sender
{
self.view.backgroundColor = [UIColor redColor];
}

(void)dealloc
{
[super dealloc];
}

(void)didReceiveMemoryWarning
{
// Releases the view if it doesn’t have a superview.
[super didReceiveMemoryWarning];

// Release any cached data, images, etc that aren’t in use.
}

#pragma mark – View lifecycle

/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
– (void)viewDidLoad
{
[super viewDidLoad];
}
*/

(void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}

(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end

Step 6: Now compile and run the application on the simulator.

You can Download SourceCode from here BackgroungColor

How to Change background color after pressing Button in iPhone

In this application we will see how to change background color using button pressed. So let see how it will worked.  My previous post you can find out from here  ButtonPressed

Step 1: Open the Xcode, Create a new project using View Base application. Give the application “BackgroundColor”.

Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory structure to check out the content of the directory.

Step 3: Open the BackgroungColorViewController.h file and make the following changes in the file

#import <UIKit/UIKit.h>

@interface BackgroungColorViewController : UIViewController {

IBOutlet UIButton*firstButton;
IBOutlet UIButton*secondButton;
IBOutlet UIButton*thirdButton;
}

(IBAction)FirstButtonPressed:(id)sender;
(IBAction)SecondButtonPressed:(id)sender;
(IBAction)ThirdButtonPressed:(id)sender;

@end

Step 4: Double click the BackgroungColorViewController.xib file and open it to the Interface Builder. First drag the three Round Rect Button and place it to the view window. Select the first button and bring up Connection Inspector and connect Touch Up Inside to the Files Owner icon and select FirstButtonPressed: method. Do the same thing for other two buttons and select SecondButtonPressed: and ThirdButtonPressed: method. Now save the .xib file, close it and go back to the Xcode.

Step 5: In the BackgroungColorViewController.m file make the following changes:

#import "BackgroungColorViewController.h"
@implementation BackgroungColorViewController

(IBAction)FirstButtonPressed:(id)sender
{
self.view.backgroundColor = [UIColor greenColor];
}

(IBAction)SecondButtonPressed:(id)sender
{
self.view.backgroundColor = [UIColor yellowColor];
}

(IBAction)ThirdButtonPressed:(id)sender
{
self.view.backgroundColor = [UIColor redColor];
}

(void)dealloc
{
[super dealloc];
}

(void)didReceiveMemoryWarning
{
// Releases the view if it doesn’t have a superview.
[super didReceiveMemoryWarning];

// Release any cached data, images, etc that aren’t in use.
}

#pragma mark – View lifecycle

/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
– (void)viewDidLoad
{
[super viewDidLoad];
}
*/

(void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}

(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end

Step 6: Now compile and run the application on the simulator.

You can Download SourceCode from here BackgroungColor

How to Change background color after pressing Button in iPhone

In this application we will see how to change background color using button pressed. So let see how it will worked.  My previous post you can find out from here  ButtonPressed

Step 1: Open the Xcode, Create a new project using View Base application. Give the application “BackgroundColor”.

Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory structure to check out the content of the directory.

Step 3: Open the BackgroungColorViewController.h file and make the following changes in the file

#import <UIKit/UIKit.h>

@interface BackgroungColorViewController : UIViewController {

IBOutlet UIButton*firstButton;
IBOutlet UIButton*secondButton;
IBOutlet UIButton*thirdButton;
}

(IBAction)FirstButtonPressed:(id)sender;
(IBAction)SecondButtonPressed:(id)sender;
(IBAction)ThirdButtonPressed:(id)sender;

@end

Step 4: Double click the BackgroungColorViewController.xib file and open it to the Interface Builder. First drag the three Round Rect Button and place it to the view window. Select the first button and bring up Connection Inspector and connect Touch Up Inside to the Files Owner icon and select FirstButtonPressed: method. Do the same thing for other two buttons and select SecondButtonPressed: and ThirdButtonPressed: method. Now save the .xib file, close it and go back to the Xcode.

Step 5: In the BackgroungColorViewController.m file make the following changes:

#import "BackgroungColorViewController.h"
@implementation BackgroungColorViewController

(IBAction)FirstButtonPressed:(id)sender
{
self.view.backgroundColor = [UIColor greenColor];
}

(IBAction)SecondButtonPressed:(id)sender
{
self.view.backgroundColor = [UIColor yellowColor];
}

(IBAction)ThirdButtonPressed:(id)sender
{
self.view.backgroundColor = [UIColor redColor];
}

(void)dealloc
{
[super dealloc];
}

(void)didReceiveMemoryWarning
{
// Releases the view if it doesn’t have a superview.
[super didReceiveMemoryWarning];

// Release any cached data, images, etc that aren’t in use.
}

#pragma mark – View lifecycle

/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
– (void)viewDidLoad
{
[super viewDidLoad];
}
*/

(void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}

(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end

Step 6: Now compile and run the application on the simulator.

You can Download SourceCode from here BackgroungColor

How to Change background color after pressing Button in iPhone

In this application we will see how to change background color using button pressed. So let see how it will worked.  My previous post you can find out from here  ButtonPressed

Step 1: Open the Xcode, Create a new project using View Base application. Give the application “BackgroundColor”.

Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory structure to check out the content of the directory.

Step 3: Open the BackgroungColorViewController.h file and make the following changes in the file

#import <UIKit/UIKit.h>

@interface BackgroungColorViewController : UIViewController {

IBOutlet UIButton*firstButton;
IBOutlet UIButton*secondButton;
IBOutlet UIButton*thirdButton;
}

(IBAction)FirstButtonPressed:(id)sender;
(IBAction)SecondButtonPressed:(id)sender;
(IBAction)ThirdButtonPressed:(id)sender;

@end

Step 4: Double click the BackgroungColorViewController.xib file and open it to the Interface Builder. First drag the three Round Rect Button and place it to the view window. Select the first button and bring up Connection Inspector and connect Touch Up Inside to the Files Owner icon and select FirstButtonPressed: method. Do the same thing for other two buttons and select SecondButtonPressed: and ThirdButtonPressed: method. Now save the .xib file, close it and go back to the Xcode.

Step 5: In the BackgroungColorViewController.m file make the following changes:

#import "BackgroungColorViewController.h"
@implementation BackgroungColorViewController

(IBAction)FirstButtonPressed:(id)sender
{
self.view.backgroundColor = [UIColor greenColor];
}

(IBAction)SecondButtonPressed:(id)sender
{
self.view.backgroundColor = [UIColor yellowColor];
}

(IBAction)ThirdButtonPressed:(id)sender
{
self.view.backgroundColor = [UIColor redColor];
}

(void)dealloc
{
[super dealloc];
}

(void)didReceiveMemoryWarning
{
// Releases the view if it doesn’t have a superview.
[super didReceiveMemoryWarning];

// Release any cached data, images, etc that aren’t in use.
}

#pragma mark – View lifecycle

/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
– (void)viewDidLoad
{
[super viewDidLoad];
}
*/

(void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}

(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end

Step 6: Now compile and run the application on the simulator.

You can Download SourceCode from here BackgroungColor

ButtonPressed example in iPhone.

This is the ButtonPressed example. This is the very simple example. In this example we will see after pressing button message will display and dragging in the screen message will hide. So let see how it will worked. Another ButtonPress example you can find out from here ButtonPressed

Step 1: Open the Xcode, Create a new project using View base application. Give the application “ButtonFun_View”.

Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory structure to check out the content of the directory.

Step 3: Xpand classes and notice Interface Builder created the ButtonPressViewController class for you and generated a separate nib, ButtonFun_ViewViewController.xib for the “ButtonFun_View”.

Step 4: Open the ButtonFun_ViewViewController.h file and make the following chanages:

#import <UIKit/UIKit.h>

@interface ButtonFun_ViewViewController : UIViewController {

IBOutlet UIButton *button;
IBOutlet UILabel *label;
}

@property (nonatomic, retain) UIButton *button;
@property (nonatomic, retain) UILabel *label;
(IBAction) buttonPressed;

@end

Step 5: Double click the ButtonFun_ViewViewController.xib file and open it to the Interface Builder. First drag the Round Rect button from the library and place it to the view window, next drag the label from the library and place it to the view window. Select the Round Rect button and bring up Connection Inspector and connect Touch up Inside to the Files Owner icon and select buttonPressed: method. and connect Files Owner icon to the label and select label. Now save the .xib file, save it and go back to the Xcode.

Step 6: In the ButtonFun_ViewViewController.m file make the following changes:

#import "ButtonFun_ViewViewController.h"

@implementation ButtonFun_ViewViewController

@synthesize button;
@synthesize label;

(IBAction) buttonPressed {
label.text = @"Drag to hide label.";
}

(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{

button.hidden = YES;
label.hidden = YES;
}

(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
button.hidden = NO;
label.hidden = NO;
label.text = @"";
}

(void)dealloc
{
[super dealloc];
}

(void)didReceiveMemoryWarning
{
// Releases the view if it doesn’t have a superview.
[super didReceiveMemoryWarning];

// Release any cached data, images, etc that aren’t in use.
}

#pragma mark – View lifecycle

/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
– (void)viewDidLoad
{
[super viewDidLoad];
}
*/

(void)viewDidUnload
{
[super viewDidUnload];

}

(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end

Step 7: Now compile and run the application on the Simulator.

You can Download SourceCode from here ButtonFun_View