Uploaded August 2012 | Updated September 2026, 1 week ago
For more videos on technology, visit Techytube.com
By Mike@Techytube
Command-line arguments are a staple of most programming and scripting languages. In a strictly shell based environment, this type of project will function like a normal command-line executable, and can both show help messages on usage as well as take in varying input from the user.
There are some exceptions and some caveats, such as whether the file-name of the executable is the first member of the argument array, or what system parameters might be passed in and available for use.
Improper array checking is also common, and often leads to complete program halt rather than a recoverable error.
In this video, I will show you how to create a simple program that will take any number of command line arguments, and different ways of solving the validation problem.
For more videos on technology, visit Techytube.com
By Mike@Techytube
Command-line arguments are a staple of most programming and scripting languages. In a strictly shell based environment, this type of project will function like a normal command-line executable, and can both show help messages on usage as well as take in varying input from the user.
There are some exceptions and some caveats, such as whether the file-name of the executable is the first member of the argument array, or what system parameters might be passed in and available for use.
Improper array checking is also common, and often leads to complete program halt rather than a recoverable error.
In this video, I will show you how to create a simple program that will take any number of command line arguments, and different ways of solving the validation problem.

![How to use the UIImageView class to animate a series of images
Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By pavel@techytube, for more from this author visit:
http://www.techytube.com/author/pavel
An image view object provides a view-based container for displaying either a single image or for animating a series of images. For animating the images, the UIImageView class provides controls to set the duration and frequency of the animation. You can also start and stop the animation freely.
You specify the animation images by setting the animationImages property of the UIImageView object:
imageView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@blue],
[UIImage imageNamed:@green],
[UIImage imageNamed:@orange],
nil];
We specify the duration of the animation by setting the animationDuration property:
imageView.animationDuration = 3.0f;
We can start or stop animating the images by sending startAnimating or stopAnimating messages to the image view object:
[imageView startAnimating];
or
[imageView stopAnimating];
All images associated with a UIImageView object should use the same scale. If your application uses images with different scales, they may render incorrectly.
For more details, please visit Apples Online Documentation at:
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImageView_Class/Reference/Reference.html How to use the UIImageView class to animate a series of images](https://i.ytimg.com/vi/yEbid5QUemY/mqdefault.jpg)

![How to create view controllers programmatically in iOS
Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By pavel@techytube, for more from this author visit:
http://www.techytube.com/author/pavel
The UINavigationController class implements a specialized view controller that manages the navigation of hierarchical content. This class is not intended for subclassing. Instead, you use instances of it as-is in situations where you want your applications user interface to reflect the hierarchical nature of your content. This navigation interface makes it possible to present your data efficiently and also makes it easier for the user to navigate that content.
To create a navigation controller programmatically, you have to write the following code:
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:self.viewController];
Usually that is done in the AppDelegate.m file, but it can be done in any file you need.
If you do that in the AppDelegate.m file than you should replace the line:
self.window.rootViewController = self.viewController;
with the following line:
self.window.rootViewController = navController;
and it is perfectly ok because UINavigationController is a subclass of UIViewController.
If you run the program, you may notice a blue navigation bar appears on the top. You can customise that if you want, or you can hide it using any of the 2 lines below:
navController.navigationBarHidden = YES;
navController.navigationBar.hidden = YES;
To set a title in the NavBar, you should write in the viewDidLoad method of the ViewController class that is currently displayed by the Navigator object, any of the 2 lines below:
self.navigationItem.title = @Title;
self.title = @Title; How to create view controllers programmatically in iOS](https://i.ytimg.com/vi/zDLjdxmdwxs/mqdefault.jpg)


