acerbetti / ACEDrawingView

An open source iOS component to create a drawing app
Apache License 2.0
665 stars 171 forks source link

ACEDraggableText.bundle not found? #63

Closed vinzen closed 8 years ago

vinzen commented 8 years ago

I update to the last version and here is what I got:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSBundle initWithURL:]: nil URL argument'
*** First throw call stack:
(
    0   CoreFoundation                      0x00000001067c834b __exceptionPreprocess + 171
    1   libobjc.A.dylib                     0x000000010a1e321e objc_exception_throw + 48
    2   CoreFoundation                      0x0000000106831265 +[NSException raise:format:] + 197
    3   Foundation                          0x0000000109cd6b3d -[NSBundle initWithURL:] + 87
    4   Foundation                          0x0000000109cd6ad3 +[NSBundle bundleWithURL:] + 45
    5   ACEDrawingView                      0x0000000105482f6f -[ACEDrawingView configure] + 703
    6   ACEDrawingView                      0x0000000105482c6a -[ACEDrawingView initWithCoder:] + 138

The ACEDrawingView is instantiated from a Storyboard.

Cocoapod: 1.0.1 Xcode: 8.0

acerbetti commented 8 years ago

Strange, I'm using pod myself in a similar configuration and I don't see this problem. Can you please check if the resources in png format are downloaded correctly ?

vinzen commented 8 years ago

Yeah they are

capture d ecran 2016-10-07 a 17 25 20

acerbetti commented 8 years ago

I'm not sure why the bundle is not loaded correctly. I just pushed version 2.0.1 which add a check for nil. You can always set the images for the corner of the draggable text tool programmatically using the properties: draggableTextRotateImage & draggableTextCloseImage