Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Mobile-Applications Access a variable local and globally
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


samar
Access a variable local and globally
1 Answer(s)      4 years ago
Posted in : MobileApplications


how can we access a variable local and globel??


Advertisement
View Answers

October 21, 2010 at 11:17 AM


hello,

if you want to access your variable with in the view then declare it in the view.h file

and if you want your variable globally then declare it in the appDelegate file

and then make an object for appDelegate file like this

YourAppDelegate *appDelegate = (YourAppDelegate *)[[UIApplication sharedApplication] delegate];

and then access your variable

like this

appDelegate.variable.....



Related Tutorials/Questions & Answers:
Access a variable local and globally
Access a variable local and globally  how can we access a variable local and globel??   hello, if you want to access your variable... *)[[UIApplication sharedApplication] delegate]; and then access your variable like
Local Variable and Instant Variable
Local Variable and Instant Variable  difference between Local Variable and Instant Variable   Difference between local variable... a method, while a local variable is declared within a method. Instance variable get
Advertisements
What is a local, member and a class variable?
What is a local, member and a class variable?   Hi, What is a local, member and a class variable? thanks
Local Variable ,Package & import
Local Variable ,Package & import A local variable has a local scope.Such... it is declared. Example of Local variable : The class variable are declared in the class but not within methods of any class. Whereas the local variable exits within
Difference between the local and class variable.
Description: The class variable are declared in the class but not within methods of any class. Whereas the local variable exits within the methods of any... between the class and local variable. Showing Local Variable
I want to store the value of local variable into Global variable
I want to store the value of local variable into Global variable    <%=cnt%>=x; is it a valid Statement
Creating a Local Variable in JSP
Creating a Local Variable in JSP     ... consider a situation where we have to declare a variable as local, then we should... or variable we usually declare it inside the declaration tag. If we declare
Creating a Local Variable in JSP
Creating a Local Variable in JSP      In jsp when we have to create a method or variable we usually declare... to declare a variable as local, then we should declare the methods and variables
please tell me the difference between local variable, staitic variables, and instance variables....
please tell me the difference between local variable, staitic variables, and instance variables....  please tell me the difference between local variable, staitic variables, and instance variables
PHP Global Variable
to access the globally declared variable. There is no limit to use global...PHP  Global Variable To access global variable in PHP we need to use...;; global $a;//global keyword helps us to access globally declared variables
Getting the Local port
Getting the Local port       In this section you will learn that how a user can access the Local... it will display the server's local port. For which we use a class ServerSocket which creates
php local variables
php local variables  Creating and calling a local variable in PHP
Local Language
Local Language  Anybody help me..... how to implement local language in my project
Flex Variable Scope
Scope of the variable defines the accessibility of the variable across the application. The global variable has global access to the application and local variable is restricted to the block of code only. The variable defined outside
access
access   This is Nitha Sriram i am having a problem that, i am having a combo box in the JSP page when i select an item from that i am calling the onchange function. In javascript i am getting the value now i want to pass
Global and Local Simple-Type Elements
.style1 { background-color: #BFDFFF; } Global and Local Simple-Type Elements When an element is declared globally then it can be referenced by any... define the type of an element locally. The local type is unnamed and that type
What are local variables?
What are local variables?   hi, What are local variables? thanks   Hi, The Local varaiables are those which are declared within a block of syntax like methods. Local variables should be initialised before
Local repository in Maven
Local repository in Maven  How to read the jars/plugins from local instead of online while building an application with Maven. Any detailed steps will be appreciated
Local Maven Depenency
Local Maven Depenency  Hi, What is local maven dependency? How to manage local maven dependency? Thanks   Hi, If some library is not available on the public maven repository you can add it to the local maven
Local transport in Agra
Local transport in Agra  Hi, What all local transports are available in Agra? I want to see Agra local places myself. Thanks   Hi, Taj... to move around Agra. You can hire any Local transport available in City. Read
URL folder download to local
URL folder download to local  I have a requirement to download all the folders and files inside from a SVN link to my local directory. Can you help how it could be done
Instance variable in java
in java, they are as follows : Local variable Instance Variable class...Instance variable in java In this section you will learn about Instance variable in java. In java all variable must be declared before they are used
pom.xml local jar
pom.xml local jar  Hi, I have placed one jar file in the WEB-INF/lib folder now I wan't to use this jar in the maven build and test phases. How to use this jar file? Thanks
php variable scope
php variable scope  How can i access a variable from scope of another function
php variable in javascript
php variable in javascript  Access php variables in Javascipt or Jquery rather than php echo $variable
pom.xml local jar
pom.xml local jar  Hi, I have placed one jar file in the WEB-INF/lib folder now I wan't to use this jar in the maven build and test phases. How to use this jar file? Thanks   HI, You can add following dependency
Access Specifiers and Access Modifiers
Access Specifiers and Access Modifiers  What are Access Specifiers and Access Modifiers
Java variable
Java variable   To what value is a variable of the String type automatically initialized
Pointer a variable
Pointer a variable  hii, Pointer is a variable or not ?   hello, Yes, a pointer is a variable
Converting jsp variable to java variable
Converting jsp variable to java variable  Hi how to convert java script variable to java variable on same jsp page
Passing variable
Passing variable  How to pass variable to HTTP object in HTMl or PHP
 

 

 

DMCA.com