Skip to content

It crashes on Xcode8 & Swift 3.0. #135

@showmylym

Description

@showmylym

The crash position stopped at @UIApplicationMain, and printed following log in console.

invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
libc++abi.dylib: terminate_handler unexpectedly threw an exception

Present code is

                        let imagePicker = ELCImagePickerController(imagePicker: ())
                        imagePicker?.mediaTypes = [ALAssetTypePhoto]
                        imagePicker?.onOrder = true
                        imagePicker?.maximumImagesCount = canSelectPhotoNum
                        imagePicker?.imagePickerDelegate = self
                        imagePicker?.navigationBar.barTintColor = ColorMainTheme
                        imagePicker?.navigationBar.tintColor = UIColor.white
                        imagePicker?.navigationBar.titleTextAttributes = [NSFontAttributeName: self.titleLabel.font, NSForegroundColorAttributeName: imagePicker?.navigationBar.tintColor]
                        imagePicker?.navigationItem.title = StrPhoto
                        self.present(imagePicker!, animated: true, completion: nil)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions