Is it OK to use Apple's sample code in my app?
开发者_如何学编程I'm writing my first iPhone app. I want to use some methods from the sample code downloaded from Apple website, such as the PhotoScroller sample project.
Is it OK to do so? (Sorry I have no knowledge of copyright nor copyleft.)
Thanks
Yes, it's absolutely acceptable to include sample code provided by Apple in your own iPhone application.
Short answer: yes.
Apple's sample code usually comes with a copyright message, as long as you are not violating the terms of that message you should be fine.
Yes, I've actually seen The Elements app on the AppStore. It was free, however it made it up there without any problems whatsoever.
Not sure whether it's still on there though.
精彩评论