In this video I show you how to automatically resize your artboards to your illustrator selected work.
There’s a wonderfully helpful video here [props to Paul Flahan for this]:
For some reason, I’ve always failed to remember what the command to track a remote branch is in git. I look it up on this page everytime I want to do it: https://git-scm.com/book/en/v2/Git-Branching-Remote-Branches
Well no more. I figured if I write a post about it, I will remember it so here we go:
That’s it… the branch will be set up to track the remote and you are switched over automatically.
Just a quick video to show you how to use the facebook native ios sdk in swift.
follow the directions to get your plist file updated here: https://developers.facebook.com/quickstarts/?platform=ios
Once that’s done follow the instructions to add your build identity to facebooks records. Then…
- drag the frameworks into your project
- update your appdelegate file
- update your view controller
- make your view controller a delegate for the login button
replace your applicationdidlaunchwithoptions:
Then add the following:
Then in your “applicationDidBecomeActive“:
NOTE: make sure to import:
That’s it! here’s a video explaining more:
There’s also a great tutorial for anyone looking to do the older “bridging” method of importing the sdk: http://www.brianjcoleman.com/tutorial-how-to-use-login-in-facebook-sdk-4-0-for-swift/
This video shows the development process of working directly in a native ios application to update your web app running locally. If you aren’t familiar with how to get that up and running checkout my other tutorial here: http://iwearshorts.com/blog/local-website-in-an-ios-app/
Let’s say you want to animate a new view controller in and immediately start playing a video. You might things it’s as easy as taking a static image of the first frame of the video as the background and then crossfading the video overtop when it’s ready to play…right?
This was a 24 hour bug for me. I kept seeing this black screen before the video loads. I tried adjusting alphas, delays before playing the video, even changing the background color of the view of the video itself! Nothing worked.
Normally many of these solutions would seem right! It turns out you need to look far back in time to find the solution. In IOS 6, MPMoviePlayerController was given a new event to catch. For those of us using “MPMoviePlayerLoadStateDidChangeNotification” you’re doing it wrong… You see this load event is telling you when the video content is loaded and can play all the way through, however, it does NOT tell you when your movie is ready for the display to handle it.
There’s a new-ish notification to watch out for, it’s called: “MPMoviePlayerReadyForDisplayDidChangeNotification” and it’s your silver bullet. This thing only fires after the video has loaded…and is ready for the display!
Set everything up like you normally would, ad your observer:
Then add your handler:
Now your video should only fade in when it’s ready for display. After fading, you actually call “play” on the controller.
I’ll make a video and post it later…
In this video I show you how to export video from adobe media encoder into a format that will allow you to play on the ipad. It shows you everything from framerates to bit rates in h.264. It also shows you how to test easily using the ios simulator (in this case an ipad)
So you’re a master at html5 and you want to build a native app on ios, but you don’t know swift or objective-c.
No worries, there are a ton of platforms out there to help with this. But with some basic knowledge of ios you can build an using mostly web technologies!
What we will do is a build a locally hosted website, put it inside a native ios app and run it all together to give the appearance of a native app but built using html5.
You can download the project on my github: https://github.com/newshorts/LocalWebsiteInIOSApp
i want to start doing timelapses of coding while I’m working, so here goes:
First off set up a terminal command to take a screenshot every 25 seconds:
Next stitch together the screens with ffmpeg: