原创 根據指定經緯度創建地圖並且定位

  //地圖邊框的實現     UIView *view =[[UIView alloc]initWithFrame:CGRectMake(10, 120, 300, 240)];     view.layer.cornerRadius

原创 通過存圖片鏈接的數組循環將圖片下載轉換成imageview

  //將下載的圖片循環存入圖片的數組中     for ( int i = 0 ; i<count; i++)      {         //picarray爲存放圖片路徑的數組         NSString * str = [

原创 讀取plist文件

 //讀取文件名爲VWPlist.plist文件中的數據         NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"VWPlist" ofType:@"p

原创 部署源碼LAMP+discuz

      部署源碼LAMP環境+discuz論壇 目錄 部署源碼LAMP環境+discuz論壇... 1 創建源碼apache. 1 創建運行MYSQL數據庫系統用戶... 1 構建PHP環境... 2 部署Discuz!論壇... 2

原创 繪製tableView 自定義section標頭

 //繪製section標頭的方法                                                                -(UIView *)tableView:(UITableView *)tab

原创 構建NTP時間服務器

  Linux NTP配置方法 目錄 Linux NTP配置方法... 1 簡單例子介紹... 1 時鐘部分說明... 1 linux NTP 軟件包相關配置文件說明... 2 關於權限設定部分... 3 其他說明... 3 ntpq –p

原创 給UIimageView添加點擊事件

 9、爲UIImageView添加單擊事件: imageView.userInteractionEnabled = YES; UITapGestureRecognizer *singleTap = [[UITapGestureRecogni

原创 自定義圓角button

    UIButton * buttonLogin=[UIButton buttonWithType:UIButtonTypeCustom];     buttonLogin.frame=CGRectMake(110, 180, 100

原创 用來存儲用戶登錄數據

 //將解析好的數據存到一個系統保留的字典裏 退出程序後不會釋放receiveData爲接收從服務端返回的shu ju     [[NSUserDefaults  standardUserDefaults]setValue:[receive

原创 post請求

 +(void)post:(id)se {     //請求網址     NSURL* url = [NSURL URLWithString:HTTPAddress];     NSMutableURLRequest* request =