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
SeanChense
V2EX  ›  iDev

问个 NSTextAttachment 不立刻显示图片的问题。

  •  
  •   SeanChense · Oct 28, 2015 · 2807 views
    This topic created in 3848 days ago, the information mentioned may be changed or developed.
    NSTextAttachment 放了一个图片,异步加载回来,加载成功有回调给 tableView 去 reload
    但是有个别的图片不是立刻就显示出来。

    观察规律:位于 UILabel 起始和终点的图片较大概率不显示。

    点击一下 cell 或者滑动列表再划回来图片就显示出来了。
    1 replies    2015-10-29 09:35:36 +08:00
    iCell
        1
    iCell  
       Oct 29, 2015
    你图片异步加载之后用 NSTextAttachment 生成 NSAttributedString 之后,又在主线程上更新 UILabel 吗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5634 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 07:22 · PVG 15:22 · LAX 00:22 · JFK 03:22
    ♥ Do have faith in what you're doing.