This is a constant pointer to a NSString object, which btw is immutable by SDK. Pointer cannot be changed to point anywhere else. That was most likely the very reason why you're using const in the first place. This can be used in e.g. isEqualToString without compiler warning.
Friday, August 5, 2011
Thursday, June 30, 2011
How to View HTML Source Code from UIWebView
- (void)webViewDidFinishLoad:(UIWebView *)webViewLet's hope Facebook will quickly fix their faulty server-side code - and next time do better testing before a release...
{
NSLog(@"%@",
[webView stringByEvaluatingJavaScriptFromString:
@"document.body.innerHTML"]);
}
Friday, June 17, 2011
Why Xcode Can't Find My Connected Device
There are many ways to fail launching an application in your device. This was a new one!
iPhone is running iOS 4.1, but project "Deployment Target" is set to 4.3. As result this project does not show your device in Scheme list. Switch to another project with a compatible deployment target and your device is on the list!
Xcode4 completely failed to help debugging this case, in all possible ways.
iPhone is running iOS 4.1, but project "Deployment Target" is set to 4.3. As result this project does not show your device in Scheme list. Switch to another project with a compatible deployment target and your device is on the list!
Xcode4 completely failed to help debugging this case, in all possible ways.
Tuesday, June 14, 2011
How to Find Unlocalized Strings
How to make sure you have localized all text strings in your application? You check it manually once - and then change the code. Is everything still localized? Did someone else in team just touch the code?
Fortunately Apple Xcode team comes to rescue!
Fortunately Apple Xcode team comes to rescue!
Monday, June 13, 2011
CocoaHeads Helsinki #2
We still had good time, nobody missed WWDC. Yep :)
Labels:
business,
CocoaHeads,
CoreData,
games,
mogenerator
Thursday, June 9, 2011
Testing TestFlight
Started last night beta testing my few small but simple applications. In past I've done ad hoc releases and distribution manually and was not really looking forward to do it again.
Then I was told about TestFlight. It's beatiful. It's user-friendly. It works. And then some more!
Then I was told about TestFlight. It's beatiful. It's user-friendly. It works. And then some more!
Monday, June 6, 2011
How to Clear Project Build Results
You have a project with several targets, of which at least one fails. You can see this at Xcode4 iTunes-styled toolbar info window at top.
Except that The Target that you just build was just fine. No warnings, no errors. Xcode4 still tells something went wrong!
Except that The Target that you just build was just fine. No warnings, no errors. Xcode4 still tells something went wrong!
Subscribe to:
Posts (Atom)






