Uploaded November 2012 | Updated September 2026, 2 weeks ago
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 mzmuda@techytube, for more from this author visit:
techytube.com/author/mzmuda
We have now fully implemented restoring application state, but we still need to test and verify that the application is acting as we expect it to.
The new lifecycle in Windows 8 introduces a problem in that we need to be able to see what the application does when transitioning to different states, standard debugging will only allow us to test full termination of the application, and not just a suspend action.
In this video, I will show you how to simulate a suspend operation within the Visual Studio debugger.
References
XAML Application Lifecycle -- msdn.microsoft.com/en-us/library/windows/apps/hh986968.aspx
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 mzmuda@techytube, for more from this author visit:
techytube.com/author/mzmuda
We have now fully implemented restoring application state, but we still need to test and verify that the application is acting as we expect it to.
The new lifecycle in Windows 8 introduces a problem in that we need to be able to see what the application does when transitioning to different states, standard debugging will only allow us to test full termination of the application, and not just a suspend action.
In this video, I will show you how to simulate a suspend operation within the Visual Studio debugger.
References
XAML Application Lifecycle -- msdn.microsoft.com/en-us/library/windows/apps/hh986968.aspx







![How to programmatically set images 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 UIImageView class provides a view-based container for displaying images on iOS devices screens.
Most of the times we will set images for our UI controls visually, using the Xcode integrated Interface Builder.
But there may as well situations when we need to do that programmatically (probably we need to dynamically set images depending on different flags or situations). In those cases we first have to created the object that will contain the image:
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 200, 100, 100)];
Than we must set the actual image, by using the image property in case of UIImageView objects:
imageView.image = [UIImage imageNamed:@testImage];
And finally add that UI object to the main view:
[self.view addSubview:imageView];
iOS will take care of all the details, and will correctly load the corresponding image for the specific device.
Note that is now necessary to specify the .png or some other extension for the image. However, you can do that if you want, and youll get the same results.
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 programmatically set images in iOS](https://i.ytimg.com/vi/chdSH0XzQUQ/mqdefault.jpg)


