Mostrando postagens com marcador apple. Mostrar todas as postagens
Mostrando postagens com marcador apple. Mostrar todas as postagens
domingo, 8 de maio de 2011
Quick Tips - IOS Dev - Documentation Shortcut
This tip was given me by @marcolindoso, one of my co-workers and friend at Parsec Digital.
Most of the times Apple documentation is very useful but we have to copy the code and go to google or the Apple site, so instead of doing this we can use xcode sdk docs. Ok nice idea but the shortcut its too dificult to remember or even to guess if you don't look for it in preferences.
So let's change this:
With XCode opened enter in Preferences (Type: command + ,)
Open key bindings and type "Documentation" in the search field, now you gonna see a list and in that list is the key binding "Search Documentation for Selected Text", select it and type enter
When the key binding open for editing input command + D
Done, now you have easy to remember shortcut for documentation access, to use it put your cursor over any piece of apple documented code and use the shortcut.
Happy coding....
Marcadores:
apple,
documentation,
ios,
objective-c,
quicktips,
shortcuts
segunda-feira, 2 de maio de 2011
Quick Tip - IOS DEV - UIColor
This is a good fast tip for ios newbies (like me)....I was trying to use UIColor to create a color with RGB values like this:
But this natural approach is wrong and if you read Apple class reference here (as I did) you probably will realize that each color must be between 0 and 1....what a damn confusion uh Apple...
For those that didn't realize it before just divide it by 255 and everything goes well:
That's it folks!!!
Marcadores:
apple,
development,
ios,
iphone/ipad,
mobile,
quicktips
Assinar:
Postagens (Atom)