twotoasters / AnimatedPath

33 stars 11 forks source link

How to integrate in UIView ? #1

Open ahmedshabbirawan opened 8 years ago

ahmedshabbirawan commented 8 years ago

when i use for Custom UIView it have crush.

macdrevx commented 8 years ago

@ahmedshabbirawan can you provide some more details or some sample code?

ahmedshabbirawan commented 8 years ago

This is the major code

import "ViewController.h"

import "PathBuilderView.h"

import "ShapeView.h"

static CFTimeInterval const kDuration = 2.0; static CFTimeInterval const kInitialTimeOffset = 2.0;

@interface ViewController (){ PathBuilderView *ahmedView; }

@property (nonatomic, readonly) PathBuilderView *pathBuilderView;

@end

@implementation ViewController

ahmedshabbirawan commented 8 years ago

Thanks @macdrevx . its done.

macdrevx commented 8 years ago

Thanks. I tried it out but I wasn't able to reproduce the crash. Could you post a crash log or a stack trace?

ahmedshabbirawan commented 8 years ago

I was create outlet and assign the class which was wrong . Now i have create instance and initialize with frame following are the code

@interface ViewController (){ PathBuilderView *ahmedView; } @end

@implementation ViewController

macdrevx commented 8 years ago

Hmm, I'm not sure I can help without more detail about what exactly is crashing. Let me know if you're able to get a stack trace.