Posts

Showing posts with the label ios

2D Graphic Transformation

Image
In the past posts, I already write articles about  2D graphic drawing API , and also an article about the black magic of the  Bitmap operations . In this post, I try to write something about graphic transformation. As far as I know there are only four transformation APIs, including translate, scale, rotate and matrix. Also, all the platforms have same transformation APIs, if it is a GUI framework. Those four APIs just like a formula, if you understand them in Android, then you have the ability to do programming in IOS and Html5. The translate, scale and rotate are much more usually used and understandable, the difficult is the matrix, it is the general and mathematic representation of all the transformations in a more powerful way. What’s more, in the past  post , I just used the graphic drawing API directly in coding, actually, it is not enough for making a performance customized UI graphic. The more common case is alway drawing by both the drawing API and graphic...

2D Graphic Drawing by Pixels in Html5, Android and IOS platform

Image
In the last  post , I introduced the 2D Graphic Drawing in Html5 and android canvas, it is the basic skills if you want running into GUI programming fields, they have the similar drawing API, once you got familiar and fluent in one platform, you will be a master of another GUI platforms in a short time. And why we must learn this 2D graphic drawing API? In Html5 canvas, game developing is the most common scenario to use canvas drawing API, and in Android and IOS platform, if you want to make a custom view or widget, then here we are the 2D drawing show, the difference is that Android is operating those drawing API on a canvas, while the IOS is drawing in a Graphic Context. Again, in the last  example , I learned an example how to drawing custom clock widget in Html5 Canvas, then I ported this widget into Android platform, just the same widget but running in different native platforms. I just enjoy this, and I am looking forward the IOS version of clock widget is my next...

Learning IOS programming with Swift

Image
I already spent more than three months to learning programming in IOS, my first learning resources are the on-line courses in  Udemy , most of them are so silly that I just learned how to use the visual programming toolkit, Xcode. After leaving the help the storyboard, I still can not start a project. In the really IOS project, the storyboard and Xib visual interface not permitted at a real project. All the layout and views are organized programming in code. Then, I purchased the famous IOS book, Programming IOS 9: Dive deep into views, view controllers, and Frameworks. It tokens me $30 dollars in Amazon’s market, but I tell you It worth every coin. this is an excellent book. I can do IOS programming now, although still at the junior stage. During my learning progress, I found out the Apple’s on-line office document so sucks. I can not figure out where to get started. As an Android developer, I learned everything I need from its office website. What I just did is to downloa...