Git Product home page Git Product logo

floral's Issues

真机调试,进界面就闪退,是啥问题

2016-06-29 15:29:45.535 Floral[239:16004] -canOpenURL: failed for URL: "sinaweibohd://" - error: "(null)"
["userName": 花田小憩, "fansCount": 0, "validDate_Y": , "gag": 0, "occSelected": 1, "countryCode": 86, "email": , "realName": , "occupation": , "newAuth": 1, "j_PUSH_CODE": 031cb43dacd, "terminal": ios, "dingYue": 0, "validDate_M": , "headImg": http://m.htxq.net//UploadFiles/headimg/20160422164405309.jpg, "imWeibo": , "identity": , "validDate_W": , "token": , "listContent": <__NSCFArray 0x167139f0>(
{
contentFirst = "\U690d\U7269\U7f8e\U5b66\U751f\U6d3b\U5e73\U53f0";
contentSecond = "\U4ee5\U81ea\U7136\U690d\U7269\U8bbe\U8ba1\U4e3a\U4e3b\U5bfc\Uff0c\U63d0\U5021\U690d\U7269\U7f8e\U5b66\U751f\U6d3b\U65b9\U5f0f";
contentThird = "";
fnId = "8a94797e-a727-43f9-93cd-ea365f73def3";
fnUserID = "";
}
)
, "id": 4a3dab7f-1168-4a61-930c-f6bc0f989f32, "jian": 0, "imQQ": , "mobile": 18618234090, "newPassword": , "speciality": , "state": ONLINE, "market": appstore, "championW": 0, "loginDate": , "integral": 259, "championM": 0, "level": 2, "content": 定义自己的美好生活
, "championY": 0, "articleCount": 0, "attentioned": 0, "imWeixin": oXJjcswTIsU1x4h0JMZ_gfTvIzbc, "createDate": 2016-04-06 16:52:02.0, "city": 北京市,北京, "experience": 45, "uplevelPercent": 0.94, "gagEndDate": , "birthday": 2015-06-28, "attentionCount": 0, "sex": 女, "auth": 专家, "gagBeginDate": , "subscibeNum": 91245, "password": baaac342c725c95dee15389d13117bbc]
2016-06-29 15:29:45.836 Floral[239:16004] -[__NSCFConstantString longValue]: unrecognized selector sent to instance 0x39ba9248
2016-06-29 15:29:45.837 Floral[239:16004] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString longValue]: unrecognized selector sent to instance 0x39ba9248'
*** First throw call stack:
(0x276d386b 0x39086dff 0x276d9035 0x276d6c8f 0x276062b8 0x28474a4b 0x283f31f3 0x283f30b3 0x2847670f 0x15c6f0 0x15c89c 0x134110 0x70312c 0x701b04 0x7003cc 0x6cab08 0xe9cdbf 0xe9cdab 0xea1829 0x27696595 0x27694a8f 0x275e71e9 0x275e6fdd 0x3088baf9 0x2b84c18d 0x169c48 0x397b1873)
libc++abi.dylib: terminating with uncaught exception of type NSException

git的最新项目编译错误

我是刚开始学swift的菜鸟了,请教一个编译错误的问题,也许很常见,但是目前的我还是不懂的;
PS,已经百度过,并没有找到合适的答案。

问题截图

进入商城闪退

2016-07-28 11:20:53.959 Floral[1894:1271963] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '[<Floral.ADS 0x145ea99f0> setNilValueForKey]: could not set nil as the value for the key fnOrder.'
*** First throw call stack:
(0x18265edb0 0x181cc3f80 0x18265ecf8 0x182ffa16c 0x182f6b6e4 0x182ffa39c 0x10015aad4 0x10015abf4 0x100131ce0 0x10061dcac 0x10061c9ac 0x1005dad18 0x1820a94bc 0x1820a947c 0x1820aeb84 0x182614d50 0x182612bb8 0x18253cc50 0x183e24088 0x187826088 0x10016111c 0x1820da8b8)
libc++abi.dylib: terminating with uncaught exception of type NSException
Signal: SIGABRT (signal SIGABRT)

init(dict:[String : AnyObject]) {
super.init()
setValuesForKeysWithDictionary(dict)
}

进入商城这里报错了,麻烦看下呢

[__NSCFString longValue]

在 这个类class Author 的构造方法中,这句代码setValuesForKeysWithDictionary(dict)报错,-[__NSCFString longValue]: unrecognized selector sent to instance 0x1767d4c0

选择国家区号时,用通知中心发送消息导致presenting问题:

// 控制台错误
2016-07-12 17:54:30.627 Floral[45403:1375185] Presenting view controllers on detached view controllers is discouraged <Floral.LoginViewController: 0x7fff0a59b880>.

2016-07-12 17:54:32.271 Floral[45403:1375185] Warning: Attempt to present <Floral.NavgationViewController: 0x7fff0a964400> on <Floral.LoginViewController: 0x7fff0a69a0b0> whose view is not in the window hierarchy!

第三方登录icon渲染变虚:【自己解决】

// 重新渲染图片
    class func imageNewColor(imageName:String, color: UIColor) -> UIImage{
        let image = UIImage(named: imageName)!
        // 高清图 @2x 不然会虚
        let size = CGSizeMake(image.size.width * 2, image.size.height * 2)
        UIGraphicsBeginImageContext(size)

        let context = UIGraphicsGetCurrentContext();

       // 高清图 @2x 不然会虚
        CGContextTranslateCTM(context, 0, size.height);

        CGContextScaleCTM(context, 1.0, -1.0);
        CGContextSetBlendMode(context, .Normal);

       // 高清图 @2x 不然会虚
        let rect = CGRectMake(0, 0, size.width, size.height);

        CGContextClipToMask(context, rect, image.CGImage);
        color.setFill()
        CGContextFillRect(context, rect);
        let newImage = UIGraphicsGetImageFromCurrentImageContext();
        UIGraphicsEndImageContext();
        return newImage;
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.