shiami / SWNinePatchImageFactory

Let you use 9-Patch PNG images easily on iOS.
Apache License 2.0
37 stars 14 forks source link

two scalable area in one side #4

Open sandysultan opened 8 years ago

sandysultan commented 8 years ago

Hello shiami,

Thank you for this library, it's help me a lot, but i have a problem with two or more scalable area in one side 9 patch image. Can you help me with this?

* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The 9-patch PNG format is not support.' * First throw call stack: ( 0 CoreFoundation 0x0000000101363f45 exceptionPreprocess + 165 1 libobjc.A.dylib 0x0000000100a52deb objc_exception_throw + 48 2 CoreFoundation 0x0000000101363daa +[NSException raise:format:arguments:] + 106 3 Foundation 0x000000010069e5ee -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198 4 Vet 0x00000001003f36b1 +[SWNinePatchImageFactory createResizableImageFromNinePatchImage:] + 4305 5 Vet 0x00000001003f25a3 +[SWNinePatchImageFactory createResizableNinePatchImage:] + 67 6 Vet 0x00000001003f174d -[SWNinePatchImageView initNinePatchImage] + 77 7 Vet 0x00000001003f151d -[SWNinePatchImageView initWithCoder:] + 141 8 UIKit 0x0000000101fa730b -[UIClassSwapper initWithCoder:] + 241 9 UIKit 0x000000010217873a UINibDecoderDecodeObjectForValue + 705 10 UIKit 0x00000001021788fb UINibDecoderDecodeObjectForValue + 1154 11 UIKit 0x0000000102178470 -[UINibDecoder decodeObjectForKey:] + 278 12 UIKit 0x0000000101c7cd45 -[UIView initWithCoder:] + 925 13 UIKit 0x00000001021d9ab7 -[UITableViewCellContentView initWithCoder:] + 40 14 UIKit 0x000000010217873a UINibDecoderDecodeObjectForValue + 705 15 UIKit 0x00000001021788fb UINibDecoderDecodeObjectForValue + 1154 16 UIKit 0x0000000102178470 -[UINibDecoder decodeObjectForKey:] + 278 17 UIKit 0x0000000101c7cd45 -[UIView initWithCoder:] + 925 18 UIKit 0x0000000101f54a3f -[UITableViewCell initWithCoder:] + 92 19 Vet 0x000000010041eac6 _TFC3Vet17CommentRatingCellcfMS0_FT5coderCSo7NSCoder_GSqS0 + 182 20 Vet 0x000000010041eb6d _TToFC3Vet17CommentRatingCellcfMS0_FT5coderCSo7NSCoder_GSqS0 + 45 21 UIKit 0x0000000101fa730b -[UIClassSwapper initWithCoder:] + 241 22 UIKit 0x000000010217873a UINibDecoderDecodeObjectForValue + 705 23 UIKit 0x0000000102178470 -[UINibDecoder decodeObjectForKey:] + 278 24 UIKit 0x0000000101fa6fb3 -[UIRuntimeConnection initWithCoder:] + 134 25 UIKit 0x000000010217873a UINibDecoderDecodeObjectForValue + 705 26 UIKit 0x00000001021788fb UINibDecoderDecodeObjectForValue + 1154 27 UIKit 0x0000000102178470 -[UINibDecoder decodeObjectForKey:] + 278 28 UIKit 0x0000000101fa61f3 -[UINib instantiateWithOwner:options:] + 1255 29 UIKit 0x0000000101d32177 -[UITableView _dequeueReusableViewOfType:withIdentifier:] + 388 30 Vet 0x00000001004165ef _TFC3Vet19LoginViewController9tableViewfS0_FTCSo11UITableView21cellForRowAtIndexPathCSo11NSIndexPath_CSo15UITableViewCell + 111 31 Vet 0x00000001004169ef _TToFC3Vet19LoginViewController9tableViewfS0_FTCSo11UITableView21cellForRowAtIndexPathCSo11NSIndexPath_CSo15UITableViewCell + 79 32 UIKit 0x0000000101d44e2a -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 782 33 UIKit 0x0000000101d44f3f -[UITableView _createPreparedCellForGlobalRow:willDisplay:] + 74 34 UIKit 0x0000000101d1a307 -[UITableView _updateVisibleCellsNow:isRecursive:] + 3187 35 UIKit 0x0000000101d4dd1c -[UITableView _performWithCachedTraitCollection:] + 92 36 UIKit 0x0000000101d35884 -[UITableView layoutSubviews] + 223 37 UIKit 0x0000000101ca3e40 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 710 38 QuartzCore 0x000000010757e59a -[CALayer layoutSublayers] + 146 39 QuartzCore 0x0000000107572e70 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366 40 QuartzCore 0x0000000107572cee _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24 41 QuartzCore 0x0000000107567475 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 277 42 QuartzCore 0x0000000107594c0a _ZN2CA11Transaction6commitEv + 486 43 UIKit 0x0000000101be9ca4 _UIApplicationHandleEventQueue + 7329 44 CoreFoundation 0x0000000101290011 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 45 CoreFoundation 0x0000000101285f3c CFRunLoopDoSources0 + 556 46 CoreFoundation 0x00000001012853f3 __CFRunLoopRun + 867 47 CoreFoundation 0x0000000101284e08 CFRunLoopRunSpecific + 488 48 GraphicsServices 0x00000001043e1ad2 GSEventRunModal + 161 49 UIKit 0x0000000101bef30d UIApplicationMain + 171 50 Vet 0x000000010042a9ed main + 109 51 libdyld.dylib 0x0000000104d4792d start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException