Jetstream for iOS是一個優雅的MVC模型框架,采用Swift開發。它包括支付Jetstream同步協議來同步本和遠程模型。它還擁有一個單一的Websocket transport 適配器,能夠添加自定義的transport 適配器。
EGOTableViewPullRefresh - 最早的下拉刷新控件。 SVPullToRefresh - 下拉刷新控件。 MJRefresh - 僅需一行代碼就可以為UITableView或者CollectionView加上下拉刷新或者上拉刷新功能。可以自定義上下拉刷新的文字說明。具體使用看“使用方法”。 (國人寫)
目前最全的material design iOS控件。
I’ve decided to take styles from Xcode and do my best to replicate them for Sketch. Along the way, I documented the process of how I ended up with the result so you can look into things even further.
wh-app-ios 是一個原生的 iOS 應用,用于從白宮網站上獲取文章、招聘、直播和視頻點播,使用 webView下顯示,支持推送。
Timeline for iOS 是類似 Path iOS 應用的時間軸。
您可以輕松地在你的應用程序添加很棒的上下文動畫菜單。
最新系統已經封堵越獄漏洞,但 iOS 9.1 的新 Emoji 表情真的很誘人,有多少人是因為這個而選擇升級的?
NSString *IP = @"0.0.0.0"; //http://61.4.185.48:81/g/(中國天氣網的接口) NSURL *url = [NSURL URLWithString:@"http://61.4.185.48:81/g/"]; NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:NSU
UIColor *color = [UIColor colorWithRed:0.95 green:0.95 blue:0.95 alpha:0]; [aImage setBackgroundColor:color]; //設置背景透明 /******設置圖片圓角begin*******/ aImage.layer.masksToBounds = YES; aImage.layer.cornerR
iOS常用加密方法(aes、md5、base64) 1、AES加密 NSData+AES.h文件 // // NSData-AES.h // Smile // // #import <Foundation/Foundation.h> @class NSString; @interface NSData (Encryption) - (NSData *)AES256EncryptWithKey:(N
//ASIFormDataRequest方式 POST上傳圖片 -(NSDictionary *)addPicWithDictionary:(NSDictionary *)sugestDic{ NSDictionary *tempDic=nil; NSString *url=[NSString stringWithFormat:@"http://182.50.0.62:8095/xianServe
CGContextRef context = UIGraphicsGetCurrentContext(); [UIView beginAnimations:nil context:context]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIView setAnimationDuration:1.0]; // Appl
1 通過簡單的URLENCODE + BASE64編碼防止數據明文傳輸 2 對普通請求、返回數據,生成MD5校驗(MD5中加入動態密鑰),進行數據完整性(簡單防篡改,安全性較低,優點:快速)校驗。 3 對于重要數據,使用RSA進行數字簽名,起到防篡改作用。 4 對于比較敏感的數據,如用戶信息(登陸、注冊等),客戶端發送使用RSA加密,服務器返回使用DES(AES)加密。 原因:客戶端發送之所以使用
//軟件版本 - (void)softwareVersion { NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary]; NSString *currentVersion = [NSString stringWithFormat:@"當前軟件版本為:%@",infoDic[@"CFBundleShortVersionStrin
// 從view上截圖 - (UIImage *)getImage { UIGraphicsBeginImageContextWithOptions(CGSizeMake(150, 150), NO, 1.0); //NO,YES 控制是否透明 [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *ima
在 UIResponder中存在這么一套方法 - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0); - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEv
在iOS中可以這樣獲取一張網絡圖片 NSURL *url = [NSURL URLWithString:@"http://f.hiphotos.baidu.com/image/w%3D2048/sign=91c1063e1f950a7b753549c43ee963d9/f31fbe096b63f624b6a9640b8544ebf81b4ca3c6.jpg"]; NSData *data = [[
一張圖片如果放大的話一般情況下會失真,如果該圖片是規則的,比如這個聊天氣泡 ,?可以用如下代碼來設置 UIImage *rightImg = [UIImage imageNamed:@"SenderTextNodeBkg.png"]; //設置圖片拉伸 rightImg = [rightImg stretchableImageWithLeftCapWidth:30 topCapHeight:35]
CAEmitterLayer *emitter = [CAEmitterLayer layer]; emitter.frame = self.view.bounds; [self.view.layer addSublayer:emitter]; emitter.renderMode = kCAEmitterLayerAdditive; emitter.emitterPosition = CGPoi