Time of Update: 2015-05-19
iOS Programming UINavigationController,ioscontroller跳轉iOS Programming UINavigationControllerthe Settings application has multiple related screens of information: a list of settings (like Sounds), a detailed page for each setting, and a selection
Time of Update: 2015-05-19
ios開發-UI基礎-應用管理(單純介面)改進2,ios-ui 本篇文章,通過字典轉模型來改進上篇文章中的代碼. 字典轉模型,之前的文章已經介紹過,這裡再重複一下: 字典轉模型 字典:用來儲存資料的,用索引值對儲存資料,是一個nsdictionary ,(不好處:key值容易寫錯) 模型: 用來儲存資料的,一個字典對應一個模型,模型用屬性來儲存資料,是一個純潔的object對象 @property(nonatomic,copy)NSString
Time of Update: 2015-05-19
製作CocoaPods依賴庫最後步驟修改,cocoapods我是看這篇部落格http://blog.csdn.net/wzzvictory/article/details/20067595 做的,但是CocoaPods 2015年4月份有了更新,出現了一個trunk的東西(見http://blog.cocoapods.org/CocoaPods-Trunk/),意思是說以後不能再用提交pullRequest的方式來想CocoaPods提交自己的庫了,得改用 pod trunk
Time of Update: 2015-05-19
關於ios的autoLayout的一些簡單介紹以及使用方法,iosautolayout一。autoLayout的用途: 主要用於螢幕適配,尤其是出現了iphone6,plus之後。二.怎麼簡單的用autoLayout呢?點擊左一,可以看到:點擊左二:基本上要想autolayout,就要在這兩個按鈕上做文章了。 然後做一個練習,如:寬高都為100,然後置中,無論視圖怎麼反轉,一直置中一.這就有了兩個約束:寬高,置中:
Time of Update: 2015-05-19
(1/18)重學Standford_iOS7開發_iOS概述_課程筆記,standford_ios7_ios 寫在前面:上次學習課程對iOS還是一知半解,由於缺乏實踐,看公開課的視頻有時不能很好地領會知識。帶著問題去學習永遠是最好的方法,接觸一段時間iOS開發以後再來看斯坦福iOS公開課,又會有許多新的發現,對於已有的概念有了新的認識。這次課程筆記主要用作歸納知識點,整理學習思路,與大家討論課後習題,交流等。 第一課:iOS概述 1、iOS分層:①Core
Time of Update: 2015-05-15
iOS開發 - NSURLSession實現斷點續傳下載NSURLSession1.使用步驟1> 獲得NSURLSession對象2> 利用NSURLSession對象建立對應的任務(Task)3> 開始任務([task resume])2.獲得NSURLSession對象1> [NSURLSession sharedSession]2> NSURLSessionConfiguration *cfg = [NSURLSessionConfiguration
Time of Update: 2015-05-13
iOS開發——封裝自己的下拉式功能表思路1、圖片的展開:UIImage *image = [UIImage imageNamed:@popover_background]; image = [image resizableImageWithCapInsets:UIEdgeInsetsMake(24, 0, 24, 0)
Time of Update: 2015-05-12
UITabelView
Time of Update: 2015-05-11
Cocoa cola——Cocoa
Time of Update: 2015-05-11
iOS programming Delegation and Text Input,iosdelegationiOS programming Delegation and Text Input 1.1 Text Fields CGRect textFieldRect = CGRectMake(40, 70, 240, 30);UITextField *textField = [[UITextField alloc] initWithFrame:textFieldRect];//
Time of Update: 2015-05-12
NT_iOS筆記—NSURLConnection怎麼把http改為https一直使用NSURLConnection請求HTTP介面,現在為了安全性的考慮打算使用HTTPS。那麼怎麼修改呢?1.不需要認證驗證 ps:我們使用的就是這種1.1 直接修改HTTP為HTTPS;1.2 確認有 "Security.framework"1.3 修改完成,可以直接請求了。2.需要認證驗證其他的和1是一樣的,只不過需要加下面方法. -
Time of Update: 2015-05-10
iOS:繪圖畫虛線//此方法目前只能添加在self視圖上(如果有視圖在self視圖上,可能會遮蓋線條),畫的是虛線//調用[self drawRect:self.frame];//覆寫- (void)drawRect:(CGRect)rect{ CGContextRef context = UIGraphicsGetCurrentContext(); CGContextBeginPath(context); CGContextSetLineWidth(context, 1
Time of Update: 2015-05-06
Objective-C Foundation 架構 Example :Looking for Files 尋找檔案,objectivecObjective-C Foundation 架構 Example :Looking for Files 尋找檔案NSFileManager. The NSFileManager class lets you do stuff with the file system,
Time of Update: 2015-05-07
IOS 多線程,線程同步的三種方式一般情況下我們使用線程,在多個線程共同訪問同一塊資源。為保護線程資源的安全和線程訪問的正確性。在IOS中我們一般情況下使用以下三種線程同步代碼方式:第一種和第二種代碼同步的使用方法,一般情況下我們只需要使用NSLock和NSCondition申明2個屬性。然後給此屬性賦對應的值。那麼即可作為安全防控的線程手段。同時也可以保證線程的資源安全。1:NSLock方式 [xxxlock lock] //上鎖同步代碼塊[xxxlock
Time of Update: 2015-05-07
iOS 鍵盤第一響應. UIResonder對於C#裡所有的控制項(例如TextBox),都繼承於Control類。而Control類的繼承關係如下:System.Object System.MarshalByRefObject System.ComponentModel.Component
Time of Update: 2015-05-07
iOS筆記(常用的一些知識點)這是我在公司做項目時,順便做的一些筆記.......//1.iphone開發--改變UIPageControl裡的小點的顏色pageControl.currentPageIndicatorTintColor = [UIColor blackColor];pageControl.pageIndicatorTintColor = [UIColor grayColor]; //2.ios如何讓狀態列變成白色的[[UIApplication
Time of Update: 2015-05-06
高仿精仿ios版應用源碼,高仿精仿ios源碼仿準系統。基於XMPP伺服器的即時通訊以及交友用戶端。 ----第一期代碼的功能如下---- 1.新使用者註冊 2.登陸並串連XMPP伺服器 握手 保持線上 2.尋找最新註冊使用者:(下拉重新整理 上拉翻頁,做的比較匆忙,沒操作提示)
Time of Update: 2015-05-06
IOS 手勢之左右滑動1. 在"ViewController.h"中增加兩個手勢property. ?1 2@property (nonatomic, strong) UISwipeGestureRecognizer *leftSwipeGestureRecognizer; @property (nonatomic, strong) UISwipeGestureRecognizer *rightSwipeGestureRecognizer;並synthesize到&
Time of Update: 2015-05-05
iOS開發之如何and如何合并多張圖片等... 1、UIView -(UIImage*)captureView:(UIView *)theView{ CGRect rect = theView.frame; if ([theView isKindOfClass:[UIScrollView class]]) { rect.size = ((UIScrollView *)theView).contentSize; } UIGraphicsBeginImageContext(
Time of Update: 2015-05-05
UIView-圖層方法,uiview-圖層//// ViewController.m// UIView-圖層概念//// Created by wangtouwang on 15/5/5.// Copyright (c) 2015年 wangtouwang. All rights reserved.//#import "ViewController.h"@interface ViewController ()@property(nonatomic,strong) UIView