Latest

    • Earn Money Online By Monetizing YouTube Videos

      You can earn money by enable monetization on your youtube videos. Its very simple and easy , so lets get started. Note : You must be from US region or from a region where youtube allow Video monetizaiton. In Asia , Youtube does not allow some countries to monetize their videos. Steps for Evaluation Step 1 : First of all you need to create a Google Account. So I assume that you already have a Google account. Step 2 : You need a video for monetization too. Note : The video you would have for monetization must not contain any violated contents or copyright claims. Otherwise , Youtube would reject your appeal for monetization. Plus you will not draw fake traffic to your monetized video as Youtube constantly crawl your videos. Step 3 : After creating your google account, open  www.youtube.com . Step 4 : Now click on "My Channel" option at the left side of the page. Step 5 : Now you will be confronted by this screen Step 6 : Now click on "Video Manager" option as highlighted in below image Step 7 : Now you will be confronted with below screen. Just click on the "Channel" option on the left side Step 8 : Now a list would open. Select "monetization" option from the list like below Step 9 : Now click on "Enable Monitization" button. In below screenshot , my channel's monitization is already enabled so you have to enable your own. When you click on "Enable Monitization" button , you will be directed to another screen asking for your google account or google adsense account. You must have either of the above accounts. And then give your login credentials and google will review your monitization process. After few days , google will send you message regarding approval or disapproval for your videos monitization. Note  : Remember , you must be from US region or from the region where Google allows monitization. Read Youtube terms and condition for Monitization from here  Youtube Monitization . Step 10 : After your monitization is approved and enabled. Upload the video to youtube and after that enable monitization on each single video you have uploaded. Go Back to "Video Manager" option located on the left side. Select your video and click on "Edit" button like below Step 11 :  Click on the "monitization" button like below Step 12 : Now check "Display ads" option and monitization will be enabled on your video. Now you are able to earn money from the ads displayed on your videos via Google adsense. Note : You can visit Google adsense terms and policies for displaying ads on your videos and regarding earning money via ads.

Powered by Blogger.

Creating your first Application for Iphone – Tutorial



Creating your first IOS App in Mac OSX is very simple and easy. You need to grab on few things before getting started.


Pre-requisites

 ____________________________________________  

1) Mac OS X , Latest version is recommended. ( In my case I have snow leopard 10.6.8)
2) Xcode and IOS SDK , Latest version is recommended.( In my case I have  xcode_3.2.5_and_ios_sdk_4.2 SDK)
Note  : Before starting you must have installed Xcode and IOS SDK in MAC. Installing Xcode and IOS SDK is very simple , just grab on their “.dmg” file in my case i have  xcode_3.2.5_and_ios_sdk_4.2.dmg , just double click on it and it will automatically begin to install it in your MAC operating system by following the onscreen instructions.
After grabbing above tools you are now ready to get your hands dirty with your first ios application. In this application we will build a simple ‘Hello World’ Application , so lets get started…

Steps for Evaluation

________________________________________


Step 1 : After installing Xcode , launch it in your MAC. And you will face the following scenario.

________________________________________

Untitled

________________________________________

Step 2 : Click on “Create a new Xcode Project” on the left top side.
Step 3:  Now you will be confronted with this scenario

________________________________________

2

________________________________________


Step 3: Select the “View Based” Application from options above in the screenshot.
Note : I am not gonna discuss , what those 7 options mean? , what do they do? , if you want to know about them , then stay tuned to “BaidarTuts” , I will soon make tutorials regarding them.
Step 4 : After selecting “View Based” Application click on “Choose” Button and you will be prompted for providing a name to the application , give any name you want , I have given “Hello world” name to my application.
Step 5: Now you will be confronted with the following scenario as show in below snapshot

________________________________________


3

________________________________________


Step 6 : Click on the “Classes” folder on the left panel as show in below screenshot.

________________________________________


4

________________________________________


Explanation Scenario :     There are 4 files , Skip the first two files and concentrate on the bottom two files in the “Classes” folder.

1) helloworldViewController.h File :

It is the header file or interface file , Interface file is used to provide us the structure of our program but not the real implementation, it contain the structure of methods but not its body.

2) helloworldViewController.m File :

It is implementation file , where the implementation of our actual program is written. Which mean the body of the methods defined in the interfaces. And as well as the body of the structural interfaces.
Step 7 : Now click on “Resources” folder in the left panel and select “helloworldViewController.xib” file.

Explanation Scenario :

helloworldViewController.xib File :

It is the Design Interface , where we design the look of our app, that how would it appear in Iphone or Ipad. We do things like drag and drop stuff here.
Step 8 : After clicking on “helloworldViewController.xib” file , a new Interface Builder will get open and would give you the following scenario

________________________________________



5

_______________________________________


Explanation Scenario : There are 4 things you need to know about which are explained below

1) Library ( The first one marked with rectangle from left side ) : Library is a repository of different tools you gonna need to build your interface , like TextBox and buttons etc.
2) helloworldViewController.xib (Second one from left side) : This is the important file , which is used to link your design interface with your real time coding interface.
3) View (Third one from left side) : This is the place where you gonna drag and drop things and that would be appeared on your iPhone or iPad screen.
4) View Attributes (Fourth one from left side) : It is used to change the specifications of your “View” like changing the background color or changing the orientation from portrait to landscape etc.
Step 9 : Now grab a Round Rect Button from the “Library” and drag it to the “View” as shown

________________________________________


8

________________________________________



Step 10 : Now its time to get your hands dirty with some IOS coding. so click on the helloworldViewController.h file under Classes folder and open it. And add the following code

Code

________________________________________

#import <UIKit/UIKit.h>

@interface helloworldViewController : UIViewController {

UIButton *show;
}
@property (nonatomic, retain) IBOutlet UIButton *show;
- (IBAction)showalert;

@end

________________________________________


Step 11 : Now open “helloworldViewController.m” file and paste the following code after “@implementation helloworldViewController”

Code

________________________________________


@synthesize show;

________________________________________


and the following code before “@end” line

________________________________________


Code

________________________________________


- (IBAction)show
{
UIAlertView *alertHello = [[UIAlertView alloc]
initWithTitle:@"MyFirstEverIOSApp" message:@"Hello, World!" delegate:nil cancelButtonTitle:@"Done" otherButtonTitles:nil];

// Show helloWorld Message
[alertHello show];
}

________________________________________


7

________________________________________


Step 12 : Now link your “Round Rect Button” with your code that we have written in step 10 and 11. Right click on the “round rect button” and hold your right click and drag it to the “file owner” and release the hold on your right click of mouse. Now select “show alert” and you round rect button would be hooked to your “show alert” method.

________________________________________


9
10

________________________________________


Step 13 : Now test your application in iphone or ipad by click on this button in Xcode :    11

Step 14: Here is your hello world application in Iphone simulator. Now click on the button and “Alert” message will be pop up to you.

________________________________________

HelloWorld-App

________________________________________


Reference : You can find the same content at my other blog : http://baidartuts.altervista.org/creating-your-first-ios-app-in-mac-osx-tutorial

________________________________________

  • Blogger Comments
  • Facebook Comments
Item Reviewed: Creating your first Application for Iphone – Tutorial Description: Rating: 5 Reviewed By: Unknown