点击播放观看视频
要运行示例项目,先克隆仓库,然后在 Example 目录中首先运行 pod install
不要使用模拟器,始终使用设备,因为它使用大量 GPU,模拟器上的性能真的很差
@interface JAQViewController () <JAQDiceProtocol>
@property (nonatomic, weak) IBOutlet JAQDiceView *playground;
@end
@implementation JAQViewController
- (void)diceView:(JAQDiceView *)view rolledWithFirstValue:(NSInteger)firstValue secondValue:(NSInteger)secondValue {
NSLog(@"%li",firstValue+secondValue);
}
- (IBAction)rollDice:(id)sender {
[self.playground rollTheDice:sender];
}
@end
iOS 8(SceneKit 在 >=iOS8 上工作)
请随便贡献
Javier Querol
JAQDiceView 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。