I am having this issue with my code that I have tried hard to fix, but with no results. Here you can see the code I am talking about:
.m
SLComposeViewController *mySLComposerSheet;
mySLComposerSheet = [[SLComposeViewController alloc] init];
mySLComposerSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
[mySLComposerSheet setInitialText:[NSString stringWithFormat:@"Jeg har gennemført %i trænningspas med \"7 minutter\", som du kan hente her: http://bit.ly/7minutter", number]];
[self presentViewController:mySLComposerSheet animated:YES completion:nil];
.h
@property (nonatomic, strong) SLComposeViewController *mySLComposerSheet;
When I analyse the code, it gives me the following errors:
- Value stored in 'mySLComposerSheet' is never read
- Incorrect decrement of the reference count of an object that is not owned at this point by the caller
I really hope that one of you can help me by taking a quick look at my code. Thank you!