Created
July 1, 2010 19:52
-
-
Save briandonahue/460461 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyViewController: UIViewController{ | |
//DO THIS | |
UIAlertView alertView; // class level variable | |
public void ShowAlertView(){ | |
// NOT THIS | |
// var alertView = new UIAlertView; // This is a local variable | |
alertView = new UIAlertView(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment