Time of Update: 2013-12-10
When creating certificate via KeyChain in an old mac, then you want to use it in a new mac, you may see the following warning "valid signing identity not found" inprovisioning profiles library. How to resolve it? two
Time of Update: 2013-12-10
大家都知道怎樣啟動Safai、Email、Map、SMS、Call,之前看到其他App可以啟動Facetime。可是在URL Scheme文檔中沒有看到說明,但覺得既然有人能做得到,就一定可以。於是根據iOS URL Scheme的命名習慣,嘗試Facetime。最後得到結果:NSURL* url = [NSURLURLWithString:@"facetime://xxxx"];//xxx是對方裝置上綁定的facetime帳號[[UIApplication
Time of Update: 2013-12-10
讓UIView圓角顯示很簡單,只需要三行代碼CALayer * layer = [avatarImageView layer]; [layer setMasksToBounds:YES]; [layer setCornerRadius:9.0]; 但是,如給給圓角view加陰影,傳統加陰影的方法是不行的,傳統的方法就是:avatarImageView.layer.shadowColor = [UIColor
Time of Update: 2013-12-10
1 前言今天我們來學習如何建立一個旋轉仿射變換並使用 UIView 類的動畫方法來執行旋轉動作。2 代碼執行個體ZYViewController.m [plain]- (void)viewDidLoad { [super viewDidLoad]; UIImage *xcodeImage = [UIImage imageNamed:@"Xcode.png"];&
Time of Update: 2013-12-10
Static Linking在ld時,如果找到了obj檔案中存在的reference,就會到libary中去把這個reference的binary code 添加到你的程式中去。經過了靜態連結的程式,是一個真正完整的可啟動並執行程式,啟動並執行時候不需要其它的東東,只需要os的kernel調用這個code就行了靜態連結中,最重要的一點:把libary中的binary 程式 添加到我們調用庫函數的程式中去了。Dynamic
Time of Update: 2013-12-10
UINavigationBar1. The UINavigationBar class implements a control for navigating hierarchical content.2. You can modify the appearance of the bar using the barStyle, tintColor, and translucent properties. Adding Content to a Navigation Bar1.
Time of Update: 2013-12-10
//這裡建立一個圓角矩形的按鈕 UIButton *button1 = [UIButton buttonWithType:UIButtonTypeRoundedRect]; // 能夠定義的button類型有以下6種,// typedef enum {//
Time of Update: 2013-12-10
1 前言上節我們介紹了程式執行的狀態,從例子中我們可以發現處理這些狀態更改的時候有明確的策略可以遵循,這次我們就來介紹一下。2 詳述2.1 活動-》不活動使用applicationWillResignActive:/UIApplicationWillResignActiveNotification來“暫停”應用程式的顯示。確保工作中不需要及時的使用者輸入,因為應用程式在一段時間內不會獲得任何使用者輸入。2.2
Time of Update: 2013-12-10
一.視圖 1. iphone手機上的視窗就是UIWindow類的一個執行個體(1個手機應用只有一個UIWindow)。 2.UIView類用於實現視圖。 UIView提供了方法來添加和刪除子視圖。一個視圖可以有多個子視圖,這些子視圖按照順序放在父視窗下: -(void) addSubview:(UIView
Time of Update: 2013-12-10
1.建立一個單例模式//// ios24_saveObjectToFileViewController.h// ios24-saveObjectToFile//// Created by on 13-6-18.// Copyright 2013年 __MyCompanyName__. All rights reserved.// #import <UIKit/UIKit.h> @interface
Time of Update: 2013-12-10
demo功能:用程式繪製餅圖的demo。demo說明:根據給定的標題數組,數值數組,和顏色數組繪製出一個餅狀圖。主要代碼在:CLMView.m中。demo截屏: demo的主要代碼:繪製部分[csharp]- (void)drawRect:(CGRect)rect { CGContextRef context =
Time of Update: 2013-12-10
demo功能:用UIimageView實現360度旋轉效果。demo說明:iPhone6.1 測試成功。主要代碼在:FVImageSequence.m中。在touchesMoved事件中,通過替換UIimageView的image來產生旋轉效果。demo截屏: demo主要代碼:[html] -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
Time of Update: 2013-12-10
目標 IOS 開發架構 IOS 常用設計模式 IOS 程式狀態 IOS 程式生命週期—UIApplication IOS 開發中 IBOutlet IBAction IOS 文字框及其代理類的使用 1、IOS
Time of Update: 2013-12-10
IOS App 中很多地方都需要使用到圖片,如:背景、小表徵圖、Logo、按鈕等。這些圖片可以使用 UIImage 對象來建立,但是必須為圖片指定一個專門的容器組件—UIImageView UIImage是一個專門儲存圖片資料的對象,可以代表的圖片格式如下表IOS 中,預設相容的圖片格式是 PNG可以通過檔案、Quartz image對象或 image
Time of Update: 2013-12-10
1 前言在物件導向中,針對抽象集合迭代行為的設計模式稱為迭代器。2 詳述2.1 簡述迭代器提供了一種順序訪問彙總對象(集合)中元素的方法,而無需暴露結構的底層表示和細節。便利集合中元素的只能從集合本身轉移到迭代器對象。迭代器定義了一個用於訪問集合元素並記錄當前元素的介面。不同的迭代器可以執行不同的遍曆策略。提供一種方法順序訪問一個彙總對象中得各個元素,而又不需暴露該對象的內部表示。2.2
Time of Update: 2013-12-10
1.iOS 關於相機菲林,視頻庫Apple suggests:Uses AVPlayer to play videos from the iPod Library, Camera Roll, or via iTunes File Sharing. Also displays metadata.可以參考官方的AVPlayerDemo。 2. 播放app本地的視頻檔案。Code:NSString *path = [[NSBundle mainBundle] pathForResource:
Time of Update: 2013-12-10
1、nil:一般賦值給Null 物件;2、NULL:一般賦值給nil之外的其他空值。如SEL等; 舉個栗子(好重啊~): [NSApp beginSheet:sheet modalForWindow:mainWindow &
Time of Update: 2013-12-10
1、建立Windows-base Application。開啟main.m檔案,在main函數中增加代碼如下:// 取得使用者預設資訊NSUserDefaults *defaults = [ NSUserDefaults standardUserDefaults ];// 取得 iPhone 支援的所有語言設定NSArray *languages = [defaults objectForKey : @"AppleLanguages" ];NSLog (
Time of Update: 2013-12-10
一:UINavigationBar 1.一個導航器控制個若干個視圖控制器; 2.一個導航控制器包含一個NavigationBar 和一個 toolBar; 3.UINavigationBar中的 一個按鈕是 UINavigationItem (only one) 4.UINavigationItem不受 UINavigationBar 控制,更不由
Time of Update: 2013-12-10
本文基於富文本:DTCoreText[cpp] #import <Foundation/Foundation.h> #import <MobileCoreServices/UTCoreTypes.h>//添加此架構 @interface UIPasteboard (AttributedString) - (void)