91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 650KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-22
  • 語言: 其他
  • 標簽: 圖文混排??

資源簡介

本Demo采用富文本結合正則表達式實現UITableVIew上的圖文混排及布局,提供超鏈接、@、$等功能,完全模仿新浪微博的功能,在數據請求上使用了AFJSONRequest,也使用了圖片的異步加載,性能良好,值得學習。

資源截圖

代碼片段和文件信息

//?AFHTTPClient.m
//
//?Copyright?(c)?2011?Gowalla?(http://gowalla.com/)
//
//?Permission?is?hereby?granted?free?of?charge?to?any?person?obtaining?a?copy
//?of?this?software?and?associated?documentation?files?(the?“Software“)?to?deal
//?in?the?Software?without?restriction?including?without?limitation?the?rights
//?to?use?copy?modify?merge?publish?distribute?sublicense?and/or?sell
//?copies?of?the?Software?and?to?permit?persons?to?whom?the?Software?is
//?furnished?to?do?so?subject?to?the?following?conditions:
//
//?The?above?copyright?notice?and?this?permission?notice?shall?be?included?in
//?all?copies?or?substantial?portions?of?the?Software.
//
//?THE?SOFTWARE?IS?PROVIDED?“AS?IS“?WITHOUT?WARRANTY?OF?ANY?KIND?EXPRESS?OR
//?IMPLIED?INCLUDING?BUT?NOT?LIMITED?TO?THE?WARRANTIES?OF?MERCHANTABILITY
//?FITNESS?FOR?A?PARTICULAR?PURPOSE?AND?NONINFRINGEMENT.?IN?NO?EVENT?SHALL?THE
//?AUTHORS?OR?COPYRIGHT?HOLDERS?BE?LIABLE?FOR?ANY?CLAIM?DAMAGES?OR?OTHER
//?LIABILITY?WHETHER?IN?AN?ACTION?OF?CONTRACT?TORT?OR?OTHERWISE?ARISING?FROM
//?OUT?OF?OR?IN?CONNECTION?WITH?THE?SOFTWARE?OR?THE?USE?OR?OTHER?DEALINGS?IN
//?THE?SOFTWARE.

#import?

#import?“AFHTTPClient.h“
#import?“AFHTTPRequestOperation.h“

#import?

#ifdef?_SYSTEMCONFIGURATION_H
#import?
#import?
#import?
#import?
#import?
#endif

#if?defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
#import?
#endif

#ifdef?_SYSTEMCONFIGURATION_H
NSString?*?const?AFNetworkingReachabilityDidChangeNotification?=?@“com.alamofire.networking.reachability.change“;
NSString?*?const?AFNetworkingReachabilityNotificationStatusItem?=?@“AFNetworkingReachabilityNotificationStatusItem“;

typedef?SCNetworkReachabilityRef?AFNetworkReachabilityRef;
typedef?void?(^AFNetworkReachabilityStatusBlock)(AFNetworkReachabilityStatus?status);
#else
typedef?id?AFNetworkReachabilityRef;
#endif

typedef?void?(^AFCompletionBlock)(void);

static?NSString?*?AFbase64EncodedStringFromString(NSString?*string)?{
????NSData?*data?=?[NSData?dataWithBytes:[string?UTF8String]?length:[string?lengthOfBytesUsingEncoding:NSUTF8StringEncoding]];
????NSUInteger?length?=?[data?length];
????NSMutableData?*mutableData?=?[NSMutableData?dataWithLength:((length?+?2)?/?3)?*?4];

????uint8_t?*input?=?(uint8_t?*)[data?bytes];
????uint8_t?*output?=?(uint8_t?*)[mutableData?mutableBytes];

????for?(NSUInteger?i?=?0;?i?????????NSUInteger?value?=?0;
????????for?(NSUInteger?j?=?i;?j?????????????value?<<=?8;
????????????if?(j?????????????????value?|=?(0xFF?&?input[j]);
????????????}
????????}

????????static?uint8_t?const?kAFbase64EncodingTable[]?=?“ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/“;

????????NSUInteger?idx?=?(i?/?3)?*?4;
????????output[idx?+?0]?=?kAFbase64EncodingTable[(value?>>?18)?&?0x3F];
????????output[idx?+?1]?=?kAFbase64EncodingTable[(value?>>?12)?&?0x3F];
????????out

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-11-05?13:30??WeiBoDemo\
?????目錄???????????0??2013-11-05?14:17??WeiBoDemo\WeiBoDemo\
?????文件???????38184??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFHTTPClient.h
?????文件???????54741??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFHTTPClient.m
?????文件????????6407??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFHTTPRequestOperation.h
?????文件???????13117??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFHTTPRequestOperation.m
?????文件????????5676??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFImageRequestOperation.h
?????文件????????9357??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFImageRequestOperation.m
?????文件????????3715??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFJSONRequestOperation.h
?????文件????????5804??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFJSONRequestOperation.m
?????文件????????3768??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFNetworkActivityIndicatorManager.h
?????文件????????5616??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFNetworkActivityIndicatorManager.m
?????文件????????1727??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFNetworking.h
?????文件????????3531??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFPropertyListRequestOperation.h
?????文件????????5665??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFPropertyListRequestOperation.m
?????文件???????19994??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFURLConnectionOperation.h
?????文件???????32158??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFURLConnectionOperation.m
?????文件????????5088??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFxmlRequestOperation.h
?????文件????????6427??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\AFxmlRequestOperation.m
?????目錄???????????0??2013-11-05?13:30??WeiBoDemo\WeiBoDemo\base.lproj\
?????文件????????1588??2013-11-05?13:30??WeiBoDemo\WeiBoDemo\base.lproj\Main.storyboard
?????目錄???????????0??2013-11-05?14:19??__MACOSX\
?????目錄???????????0??2013-11-05?14:19??__MACOSX\WeiBoDemo\
?????目錄???????????0??2013-11-05?14:19??__MACOSX\WeiBoDemo\WeiBoDemo\
?????目錄???????????0??2013-11-05?14:19??__MACOSX\WeiBoDemo\WeiBoDemo\base.lproj\
?????文件?????????171??2013-11-05?13:30??__MACOSX\WeiBoDemo\WeiBoDemo\base.lproj\._Main.storyboard
?????文件?????????359??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\Customobject.h
?????文件?????????997??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\Customobject.m
?????文件????????4632??2013-10-11?20:34??WeiBoDemo\WeiBoDemo\emotionImage.plist
?????目錄???????????0??2013-11-05?13:30??WeiBoDemo\WeiBoDemo\en.lproj\
?????文件??????????45??2013-11-05?13:30??WeiBoDemo\WeiBoDemo\en.lproj\InfoPlist.strings
............此處省略148個文件信息

評論

共有 條評論