Do we have permission to re-use iOS sample code from the apple developer website in a commercial app? Are we allowed to use it with modifications? Not sure of how to interpret all the legalese on the source. Obviously there's an "All rights reserved..." at the end, but there also a
"Apple grants you a personal, non-exclusive license, under Apple's copyrights in this original Apple software (theApple Software"), to use, reproduce, modify > and redistribute the Apple Software, with or without modifications, in source and/or binary forms; provided that if you redistribute the Apple Software in its entirety and without modifications, you must retain this notice and the following text and disclaimers in all such redistributions of the Apple Software."