I'm beginning to program iOS Apps and I want to know if its possible save the content of a label in a variable. I got this code:
if (event.subtype == UIEventSubtypeMotionShake) {
int randomNumber = arc4random() %2;
    switch (randomNumber) {
        case 0:
            label.text = [NSString stringWithFormat:@"Out of luck"];
            break;
        case 1:
            label.text = [NSString stringWithFormat:@"Yes, you can"];
            break;
        default:
            break;
     }
}
Then I want to use the label obtained in the shake event to tweet the result like this:
[twitter setInitialText:[NSString stringWithFormat:@"I asked the app and says:", label]];
But as I said before I'm a newby and I'm stuck here. ¿Any ideas?
Thank you in advance.