Wrox Programmer Forums
|
BOOK: Professional iPhone Programming with MonoTouch and .NET/C#
This is the forum to discuss the Wrox book Professional iPhone Programming with MonoTouch and .NET/C# by Wallace B. McClure, Rory Blyth, Craig Dunn, Chris Hardy, Martin Bowling ; ISBN: 978-0-470-63782-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional iPhone Programming with MonoTouch and .NET/C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 2nd, 2011, 04:16 PM
Registered User
 
Join Date: Aug 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Loading a view with a UIImage

Hi,

I am trying to push a new view by the following sudocode:

var vc = new viewName("image.png");
NavigationViewController.push(vc);

the view loads fine, if I ignore the next lines:

public override void ViewDidLoad ()
{
UIImage cIm = UIImage.FromFile(string.Format(@"images\{0}", imageName));
view.Image = cIm;
}

if I leave these lines I get an Object Reference not set to an instance of an object on the view.Image = cIm; line...

I've created an UIImageView and set an outlet for it. But I cannot see how to set the image to that, that is passed into creating the view before pushing it onto the controller.

All help gratefully received.

Scott





Similar Threads
Thread Thread Starter Forum Replies Last Post
Design view or source view tab doesnt appear Muddasar BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 March 25th, 2009 04:16 AM
Design view or source view tab doesnt appear Muddasar BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 0 March 24th, 2009 08:18 PM
Urgent - Send mail with plain view and html view ashish.dadhwal ASP.NET 2.0 Professional 0 November 27th, 2008 01:49 AM
any idea to view xml as it is but in hieratic view seco XSLT 2 January 17th, 2008 08:49 AM
populate details view or list view non empty rows iinfoque ASP.NET 2.0 Basics 0 March 11th, 2007 06:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.