Tagged Questions
2
votes
2answers
943 views
how to declare a external integer variable so that i can access that in in view controller
i want to access variable in all views ,so how can i declare it ....
2
votes
2answers
284 views
setting NSMutableArray Global variable
I want a NSMutableArray global. I have the following setup:
code.h
extern NSMutableArray *global
@interface
@end
code.m
NSMutableArray *global=nil;
@implementation
...
global=variable_mutablearray; ...
1
vote
2answers
235 views
Trying to use extern int, told it's now a pointer
I've declared this little guy in the Constants.h file of my project:
extern int *exitDirection;
Then, I set him to an integer. In this case, it was 881, which is a very nice number.
Now, I want to ...
1
vote
3answers
3k views
how to declare a variable as extern in objectivec,so that i can access that in any view controller
i want to access the same variable in all view controllers ....
1
vote
2answers
178 views
How can I speed up compile time when using many extern type declarations
The Project:
C++ Programming in xcode. I have over 3,000+ type definitions spread over 2,000+ .c/.h files. Each myType type contains a string description. I used a script to define a ...
0
votes
1answer
70 views
iOS Pass data, singleton, extern or via protocols?
Hy all,
I am really stuck at data passing in my iOS app.
First i have a class with TabBarController and inside another two ViewController.
It's a container view with a daily and weekly calendar ...
0
votes
1answer
61 views
how do i carry on values from one ViewController to another, which are user input and 'calculated'
I want to carry out the 'TotalLabel' Calculation, onto another ViewContoller known as 'AdultPayNowViewController'. I also want to carry out the 'x' value, which is a UITextField that the user inputs a ...
0
votes
1answer
47 views
how do i get one user input value form one ViewController, to appear in another? (extern/global variables?)
i have a set up 2 sets of Objective-C classes (no xib file)
AdultTicketCalculatorViewController
//.h file
#import <UIKit/UIKit.h>
@interface AdultTicketCalculatorViewController : ...
0
votes
2answers
165 views
Calling external method actually calls other method
I must be asleep already or something because I'm seeing weird things.
I've got a class, called ListSorter (.h/.m), which has 2 extern methods.
The .h looks like:
@interface ListSorter : NSObject ...