V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
codeisjobs
V2EX  ›  iDev

iOS 开发问题求解答,谢谢了

  •  
  •   codeisjobs · Mar 10, 2017 via iPhone · 3958 views
    This topic created in 3346 days ago, the information mentioned may be changed or developed.
    请问有人遇到过字符串自动在开头添加了 \a 的情况吗
    14 replies    2017-03-10 15:04:53 +08:00
    superleexpert
        1
    superleexpert  
       Mar 10, 2017
    什么鬼
    codeisjobs
        2
    codeisjobs  
    OP
       Mar 10, 2017 via iPhone
    @superleexpert 我也不知道啊,它就自动给我加进入了,我想网络请求都不行了,关键我代码没写错啊,郁闷
    qgewfg
        3
    qgewfg  
       Mar 10, 2017
    字面值是拷贝过来的?
    luosch
        4
    luosch  
       Mar 10, 2017
    可能复制了不可见字符,把这几行删掉自己写一遍
    SeanChense
        5
    SeanChense  
       Mar 10, 2017
    Editor -> Show Invisibles
    codeisjobs
        6
    codeisjobs  
    OP
       Mar 10, 2017 via iPhone
    @luosch @SeanChense @qgewfg 还真的有隐藏字符,但这都是我自己写的,不是复制的啊,而且有的字符串正常,不知道哪里出了问题……
    qgewfg
        7
    qgewfg  
       Mar 10, 2017
    @codeisjobs 切换输入法试试
    chipmuck
        8
    chipmuck  
       Mar 10, 2017
    没碰到过,请楼下解答。
    AwesomeMonster
        9
    AwesomeMonster  
       Mar 10, 2017
    没碰到过,请楼下解答。++
    idevhan
        10
    idevhan  
       Mar 10, 2017
    可能是你输入了不可见的字符,试试删除重写,不要 copy 。
    wohenyingyu02
        11
    wohenyingyu02  
       Mar 10, 2017
    没有复制只能是坑爹的输入法问题了。
    hdbean
        12
    hdbean  
       Mar 10, 2017
    NSLog 一下,看是不是也是多了
    codeisjobs
        13
    codeisjobs  
    OP
       Mar 10, 2017 via iPhone
    @hdbean 找到原因了…@wohenyingyu02 @idevhan @qgewfg 应该是哪个字符有隐藏的然后就这样了
    codeisjobs
        14
    codeisjobs  
    OP
       Mar 10, 2017 via iPhone
    感谢回复,问题解决了,谢谢了各位
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5587 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 78ms · UTC 09:12 · PVG 17:12 · LAX 02:12 · JFK 05:12
    ♥ Do have faith in what you're doing.