How to do the animation like iButterfly? - ios

I need to do a same catching action like iButterfly.But I am a fresh with iOS Animation,so can you give me some ideas?

Take at look at this sprite kit primer or if you want to use the third party library cocos2d here is a simple animation tutorial. You could also do your own animation system. I would recommend using either sprite kit or cocos2d as a lot of the work is done for you and they are heavily optimised. Good luck.

Related

SpriteKit, how to import animations from Adobe After Effects

I'm currently developing a 2d mobile game for ios using SpriteKit as framework.
I made all animations with adobe after effects and now I have to import them into the app.
Instead of using sequence of texture as recommended by Apple and other tutorial, I read that there is an add-on for after effects named Bodymovin. It exports less frame and a .json file.
Then in Xcode I installed a pod named Lottie to make it works.
Well this is ok for UIViewController.
Someone know if there is a working way to export animations from after effects and make it work simply in SpriteKit?
Thank you
Its called Lottie animations, where you create your vector animations in After effects and download them as JSONs and import it in the iOS app and start using. But there are some serious restrictions to the method such as text effects won't work..
Have a look at the below - https://lottiefiles.com
There is another similar tool that generates core animation code named as Squall. This is a bit advanced than the Lottie. But this method also has its restrictions.
Here is the link for this tool - http://www.marcuseckert.com/squall/
In present situation, other than these two, you may be out of luck in bringing your animations from adobe after effects to sprite kit in iOS.

Apple Music genre selection screen

Does anybody have an idea how the genre selection bubbles in Apple music were made? The movement seems to be done with UiKit Dynamics. I definitely see collision behaviors but can't seem to reproduce the fluidity of the drag movement and the gravity towards the center of the view. I tried using UIPushBehavior and UiSnapBehavior, but no luck.
I don't think that it was done with UIKit Dynamics, I think they was using SpriteKit.
I created a component that's can simulate similar physics
https://github.com/ProudOfZiggy/SIFloatingCollection_Swift
It is possible with UIKitDynamics as well, but can be done with SpriteKit as well which makes it much easier to implement, I have written a small component which give similar kind of effect in Objecti-C using SpriteKit. You can find it here, Its not exactly the same but its near and you can take same approach to create your own or polish it as well.
i have developed it using box2d and libGdx on android,, so using libGdx u can use my code logic for iOS also...
have a look at my project, hope it helps,
https://github.com/mohitKejriwal/Bubble-UI-Android

iOS 8 for iPhone/iWatch: is it better to use SpriteKit+UIKit or only standard UIKit to implement a spinning wheel?

I would like to create an iPhone/iWatch app featuring a spinning wheel. The spinning wheel will allow the user to control the behaviour of the app and should be touchable; in other words other than spinning (long touch) the wheel should be able to detect short touches.
To design the architecture of this App I have a doubt: should I use UIImage view subclasses only or should I use SpriteKit and mix it with UIKit?
Example of spinning wheel.
Many thanks
On iPhone I've already done this by only using UIKit... And I didn't have any problem with it. So I would answer pure UIKit. On iWatch, I don't have the knowledge to answer you about this part.
You said you want to subclass UIImageView, but I don't think you want to do that. Instead, you should subclass UIView and manage UIImageView instances privately.
Also, if and only if you want to use SpritKit only for that component in your application, you should avoid using it because the less dependency you have, the more happy you are. But it's my personal thought about that.

How to make a simple 3d object viewer component for already build native iOS app?

Several years ago I was curious about creating some objects (spoon, ball, tv, ...) in 3d modeling program, export the textures, and then have a screen in iOS app, that can open one object at a time with a possibility to rotate and zoom it. This seemed quite basic and most used case but I didn't find any simple and ready to use solutions/libraries/plugins, just raw OpenGL ES (GlKit), so I refused to use it, as it would require too much knowledge and time as I haven't done any 3d stuff before and my primary work is not related with 3d.
There are also Unity and Cocos3d engines, and it looks like they allow to extend the code by using iOS plugins (xibs/storyboards, navigation with view controllers and etc), but this means you have to make your app project as Unity/Cocos3d first, and only then add your usual UIKit stuff as a plugin. Now that is not acceptable because the project should be written using UIKit first, and I expect to add 3d viewing stuff as a separate component that encapsulates all the necessary stuff inside it as a black box, because I don't want to mess my project up, as this 3d stuff is an optional feature.
Now, after several years I'v searched for the thing again looking for simple 3d viewing plugins/solutions for UIKit, but the situation is pretty much the same imho. I saw iOS8 there will add Scene Kit, but I'm not sure will it be something close to what I expect. So, still I'm not sure is there any solution that would require minimum time efforts, or is OpenGL ES the best solution for this need.
Check out the CC3DemoMultiScene demo app in the latest version of Cocos3D. It demonstrates how to include a Cocos3D scene in a standard UIKit storyboard, and to have the GL view only a component of a larger UIView.

CoreAnimation & Cocos2D - Which one should I go with?

So I am about to start a project for an application (Not a game application) that requires a lot of animation. For example a lot of pie and bar charts that animate on the screen.
If I use cocos2d am I still able to use UI elements such as UITableView, UIButton, UISegmentedControl, etc? Can you combine Cocos2d with normal iOS UI Elements on the same view?
Which one is better for creating simple animations?
What are the advantages and disadvantages of using each for a non-game project?
There is the ability to combine Cocos2d and UIKit, but I don't know to what extent you can take it. Check out this tutorial on combining them: http://www.raywenderlich.com/4817/how-to-integrate-cocos2d-and-uikit
I'm fairly new to iOS programming and did the same research you are currently doing for my project which is very animation heavy, but not a game. I found much more information, forums and tutorials on doing animations with Cocos2d than I did for Core Animation. Not to say it's not out there, or that 1 is necessarily better than the other for what you're trying to accomplish, just my 2 cents and several weeks of Googling.
Check out Core Plot maybe you can use that to build your app.

Resources