原创 flutter 自定義loading

使用: LoadingView.showSerially(context); LoadingView.showDiscrete(context); 源碼: LoadingView.showSerially(context); impo

原创 仿QQ左側抽屜 Swift編寫

// // RootViewController.swift // 抽屜_Swift // // Created by zhangqiang on 15/7/30. // Copyright (c) 2015年 zhangqian

原创 ios數據持久化之數據庫(SQLite)

1,準備工作:引入libsqlite3.0.dylib框架 2,寫一個單例,並實現下面的方法 //打開數據庫 -(void)openDB; <span style="font-size:12px;">-(void)openDB {

原创 XMPP

1,定義        可擴展通訊和表示協議 (XMPP) 可用於服務類實時通訊、表示和需求響應服務中的XML數據元流式傳輸。XMPP以Jabber協議爲基礎,而Jabber是即時通訊中常用的開放式協議。 2,基本網絡結構       

原创 關於UIbutton的titleEdgeInsets和imageEdgeInsets的一些看法

UIEdgeInsets —>titleEdgeInsets UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];     button.backgroun

原创 ios 集合視圖(九宮格佈局)

利用UIViewController,UIView,UICollectionViewCell,通過重寫UICollectionViewDelegate,UICollectionViewDelegateFlowLayout, 協議的一些方法

原创 在線音樂播放器單例

.h文件裏面 <span style="font-size:18px;">#import <Foundation/Foundation.h> @class AVPlayer; #define kLocalURL 1 #define kOn

原创 ios JSON解析(異步)

1,單例 <span style="font-size:12px;">+(void)dataDown:(NSString *)UrlString myBlock:(imageBlock)mb { NSURL *ur

原创 tableView位置的動態改變

#import "DetailViewController.h" @interface DetailViewController ()<UITableViewDataSource,UITableViewDelegate,UIScro

原创 ios 線程

*******創建線程 //線程 //第一種 /* //線程 NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@s

原创 ios 視圖之彈窗

1,NSUserDefaults NSUserDefaults *user = [NSUserDefaults standardUserDefaults]; if ([[user objectForKey:@"userNa

原创 ios 數據持久化之沙盒

1,訪問沙盒路徑 //1,home主目錄裏面有,Documents,Library,tmp和一個應用程序 NSLog(@"Home:%@",NSHomeDirectory()); //2,Documents