NFXBubblePoolViewはSpriteKitを使うのでSpriteKit.framework
を追加してください。
ただし、NFXBubblePoolViewはSpriteKitの知識を必要としません。
ViewControllerで以下をインポートします
\#import <SpriteKit/SpriteKit.h>
\#import "NFXBubbleModel.h"
\#import "NFXBubblePoolView.h"
NFXBubblePoolView
は initWithFrame か initWithaDecoder(storyboard)で初期化します。
addModel:(NFXBubbleModel*)model
を呼ぶことでノードを追加します。
NFXBubbleModel
はタイトルと色とデータのシンプルなモデルです。
データはint数値型です。
NFXBubblePoolView use SpriteKit.
So SpriteKit.framework
add your project.(but, NFXBubblePoolView dosn't need your spriteKit skill.)
add SpriteKit.framework
add NFXBubblePoolView folder.
On your ViewController,import this.
#import <SpriteKit/SpriteKit.h>
#import "NFXBubbleModel.h"
#import "NFXBubblePoolView.h"
NFXBubblePoolView
can initialize for initWithFrame or initWithaDecoder(storyboard).
You just call addModel:(NFXBubbleModel*)model
and add one Node.
NFXBubbleModel
is simple.
This need title,color and data.
data
is int value.