• iOS開源 - 復制 iOS 樣式庫到 Sketch 以改善、加速設計流程 經驗

    more about why it’s best to use system fonts on the iOS Human Interface Guidelines . Usage Open UIFontTextStyle

    qqpkat2 2016-11-30   9625   0

    白宮網站開源的 iOS 客戶端 wh-app-ios 經驗

    wh-app-ios 是一個原生的 iOS 應用,用于從白宮網站上獲取文章、招聘、直播和視頻點播,使用 webView下顯示,支持推送。 iPhone 版截圖 iPad 版截圖 蘋果應用商店地址:

    jopen 2012-09-04   22547   0

    類似 Path iOS 應用的時間軸控件:Timeline for iOS 經驗

    Timeline for iOS 是類似 Path iOS 應用的時間軸。 項目主頁: http://www.baiduhome.net/lib/view/home/1408001919067

    jopen 2014-08-14   62802   0

    iOS動畫上下文菜單:ContextMenu.iOS 經驗

    您可以輕松地在你的應用程序添加很棒的上下文動畫菜單。

    y37f 2015-03-15   24939   0

    iOS 9.1表情真有趣 用在iOS 9.0.X也是極好 資訊

    g-to-iOS-9.1-expressions-Used-in-iOS-9.0-X-is-also-very-good_628132.shtml 最新系統已經封堵越獄漏洞,但 iOS 9.1 的新

    jopen 2015-10-25   14142   0
    IOS  

    Android傳感(加速度傳感,磁場傳感,光線傳感,方向傳感 代碼段

    (SensorManager) getSystemService(SENSOR_SERVICE); // 注冊加速度傳感 sensorManager.registerListener(this, sensorManager

    4e48 2015-01-06   3305   0
    Android  

    iOS 獲取城市IP 代碼段

    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

    ew3y 2015-01-06   2795   0
    IOS  

    iOS實現圓角效果 代碼段

    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

    n5b6 2015-01-20   1717   0
    IOS  

    iOS常用加密算法 代碼段

    iOS常用加密方法(aes、md5、base64) 1、AES加密 NSData+AES.h文件 // // NSData-AES.h // Smile // // #import

    gcd8 2015-01-20   3407   0
    IOS   算法  

    iOS通過http post上傳圖片 代碼段

    //ASIFormDataRequest方式 POST上傳圖片 -(NSDictionary *)addPicWithDictionary:(NSDictionary *)sugestDic{ NSDictionary *tempDic=nil; NSString *url=[NSString stringWithFormat:@"http://182.50.0.62:8095/xianServe

    n5b6 2015-01-20   3091   0
    IOS  

    iOS視圖翻頁過渡效果 代碼段

    CGContextRef context = UIGraphicsGetCurrentContext(); [UIView beginAnimations:nil context:context]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIView setAnimationDuration:1.0]; // Appl

    dw2d 2015-01-20   1157   0
    IOS  

    IOS常用加密算法 代碼段

    對于比較敏感的數據,如用戶信息(登陸、注冊等),客戶端發送使用RSA加密,服務返回使用DES(AES)加密。 原因:客戶端發送之所以使用RSA加密,是因為RSA解密需要知道服務私鑰,而服務私鑰一般盜取難度較大;如果使用DES的話,可以通過破解客戶端獲

    jopen 2015-02-04   3151   0
    IOS   加密  

    iOS獲取當前app版本 代碼段

    //軟件版本 - (void)softwareVersion { NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary]; NSString *currentVersion = [NSString stringWithFormat:@"當前軟件版本為:%@",infoDic[@"CFBundleShortVersionStrin

    xmnx 2015-03-23   1998   0
    IOS  

    iOS使用代碼截圖 代碼段

    // 從view上截圖 - (UIImage *)getImage { UIGraphicsBeginImageContextWithOptions(CGSizeMake(150, 150), NO, 1.0); //NO,YES 控制是否透明 [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *ima

    xg48 2015-04-10   1408   0
    IOS  

    IOS端的搖一搖功能 代碼段

    在 UIResponder中存在這么一套方法 - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0); - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEv

    gxw6 2015-05-03   1628   0

    iOS異步請求下載圖片 代碼段

    iOS中可以這樣獲取一張網絡圖片 NSURL *url = [NSURL URLWithString:@"http://f.hiphotos.baidu.com/image/w%3D2048/sig

    ccwv 2015-06-14   6979   0
    IOS  

    iOS圖片無損拉伸 代碼段

    一張圖片如果放大的話一般情況下會失真,如果該圖片是規則的,比如這個聊天氣泡 ,?可以用如下代碼來設置 UIImage *rightImg = [UIImage imageNamed:@"SenderTextNodeBkg.png"]; //設置圖片拉伸 rightImg = [rightImg stretchableImageWithLeftCapWidth:30 topCapHeight:35]

    mmvw 2015-06-14   3563   1
    IOS  

    iOS實現爆炸的效果 代碼段

    CAEmitterLayer *emitter = [CAEmitterLayer layer]; emitter.frame = self.view.bounds; [self.view.layer addSublayer:emitter]; emitter.renderMode = kCAEmitterLayerAdditive; emitter.emitterPosition = CGPoi

    jopen 2015-06-28   7498   2
    IOS  

    iOS秒表功能實現 代碼段

    MiaoBiaoViewController () { NSTimer * _timer;? //定時 NSInteger _seconds; } //開始暫停按鈕 @property

    pwmd 2015-07-19   5945   0
    IOS  

    IOS設置圖片水印代碼 代碼段

    設置圖片水印的本質就是將兩張圖片混合成一個圖片。 可以通過以下步驟來進行設置; ①創建一個基于位圖的上下文(開啟一個基于位圖的上下文) void?UIGraphicsBeginImageContextWithOptions?( CGSize size,?BOOL?opaque, CGFloat scale?) size表示圖層的大小,一般設置成背景圖的大小 opaque表示是否透明:YES不透明

    pwmd 2015-07-19   4399   0
    IOS  
    1 2 3 4 5 6 7 8 9 10
  • sesese色