Search Results

Search found 2 results on 1 pages for 'user134282'.

Page 1/1 | 1 

  • [iphone] use NSString in other method?!

    - by user134282
    It's really embarrassing but i stuck on it for two hours of trial and error. I declared an NSString in the interface as: NSString *testString; Then i made a property and synthesized it. I allocate it in viewDidLoad with: testString = [[NSString alloc] initWithFormat:@"thats my value: %i", row]; If i want to get the value of the string in another method it always return (null). So the string is empty, but why? how do i make it accessible for every function inside of one class? So i don't want to make a global var just a "global variable inside the class" It's really confusing because as long as i code i never ran into this problem :( thanks a lot for helping me!

    Read the article

1