Time of Update: 2016-05-28
iOS進階學習-多媒體,ios進階多媒體一、音頻 1、iOS 裡面共有四種專門實現播放音訊方式:System Sound Services(系統聲音服務)。OpenAL(跨平台的開源的音頻處理介面)。Audio Queue Services(播放和錄製音頻服務)。AVAudioPlayer(進階音頻播放器)。在這裡我們主要介紹一下System Sound Services和AVAudioPlayer。 2、System Sound ServicesSystem Sound Services
Time of Update: 2016-05-27
【代碼筆記】手機驗證碼,代碼筆記驗證碼一,。 二,代碼。RootViewController.h#import <UIKit/UIKit.h>@interface RootViewController : UIViewController@end RootViewController.m#import "RootViewController.h"@interface RootViewController ()@end@implementation
Time of Update: 2016-05-28
label_設定行距、字距及計算含有行間距的label高度,行距label//// ViewController.m// CNBlogs//// Created by PXJ on 16/5/27.// Copyright © 2016年 PXJ. All rights reserved.// #import "ViewController.h" @interface ViewController
Time of Update: 2016-05-28
iOS學習45之多媒體操作,ios45多媒體1. 音頻 1> 音頻實現簡述 iOS 裡面共有四種專門實現播放音訊方式: System Sound Services(系統聲音服務) OpenAL(跨平台的開源的音頻處理介面) Audio Queue Services(播放和錄製音頻服務) AVAudioPlayer(進階音頻播放器) 2> System Sound Services(系統聲音服務) ① System Sound Services
Time of Update: 2016-05-28
CocoaPods 添加第三方庫報錯,cocoapods第三方1、終端報錯:The dependency MBProgressHUD (~> 0.9.2) is not used in any concrete target.2、原因:CocoaPods升級到最新版本(包括一些高版本),Podfile檔案的內容必須明確指出所用第三方庫的targetName.3、報錯分析:低版本和高版本寫法不一樣.低版本:platform :ios, '8.0'pod 'MBProgressHUD', '~
Time of Update: 2016-05-26
可變字典 NSMutableDictionary,nsmutabledictionary存到nsuesrDefault裡面一個可變字典,然後用一個可變字典去接收。NSMutableDictionary *dic = [[NSUserDefaults standardUserDefaults]valueForKey:@"name"];但是你再其賦值的時候 [dic setValue:@"" forKey:@""]; 你就會發現儲存了。這個問題其實就在與賦值的時候
Time of Update: 2016-05-27
網路請求相關小結2,請求相關小結1 NSURLConnettion NSURLConnettion是 Core Foundation/CFNetwork架構 API 之上的一個抽象. NSURLConnettion是用來指代 Foundation 架構中的一系列組件:
Time of Update: 2016-05-26
【代碼筆記】手機號驗證,筆記手機號驗證代碼:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. //會輸出1或者0.1為YES,0為NO NSLog(@"--------%i--",[self validateMobile:@"1393241"]);}#pragma -mark -驗證手機號碼//驗證手機號碼-
Time of Update: 2016-05-27
ios如何?本地推送,相容ios8,ios相容ios8如果要相容IOS8在IOS中實現本地推送,關鍵是要注意:ios8在實現本地推送時需要通過如下語句進行註冊。[[UIApplication sharedApplication]
Time of Update: 2016-05-26
[iOS 開發] Xcode常見報錯及解決辦法,iosxcode報錯一: 在iOS7的真機運行時,彈出錯誤:App installation failed. There was an internal API error. 解決辦法:在Xcode -> Target -> Build Setting 下的Packaging部分,將Product Name 改為英文名。重新運行project,即可正常運行。 報錯二:真機運行時,彈出報錯資訊:Could not find
Time of Update: 2016-05-27
根據字串連結產生二維碼,字串連結#pragma mark - InterpolatedUIImage=因為產生的二維碼是一個CIImage,我們直接轉換成UIImage的話大小不好控制,所以使用下面方法返回需要大小的UIImage- (UIImage *)createNonInterpolatedUIImageFormCIImage:(CIImage *)image withSize:(CGFloat) size { CGRect extent =
Time of Update: 2016-05-26
ios緩衝系列---1.0,ios緩衝---1.0 1. 程式中什麼時候用到緩衝 2. 緩衝機制 1)第一次請求資料時,記憶體緩衝中沒有資料,硬碟緩衝中沒有資料。 2)當伺服器返回資料時,需要做一下步驟 1>使用伺服器的資料
Time of Update: 2016-05-26
lable計算行高,lable行高 _introduce.text=status.introduce; //設定行間距 NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc]initWithString:_introduce.text];; NSMutableParagraphStyle *paragraphStyle =
Time of Update: 2016-05-26
ARC 和 MRC 小結,arcmrc小結 ARC 和 MRC 記憶體管理 從 MRC—>ARC 就是將記憶體管理部分,從開發人員的函數中轉移到函數外部的runtime 中.由於 runtime 的開發簡單,邏輯層次高,所以 runtime
Time of Update: 2016-05-26
iOS開發筆記系列-基礎3(多態、動態類型和動態綁定),ios多態多態:相同的名稱,不同的類 使不同的類共用相同方法名稱的能力成為多態。它讓你可以開發一組類,這組類中的每一個類都能響應相同的方法名。每個類的定義都封裝了響應特定方法所需要的代碼,這使得它獨立於其他的類定義。這是因為Objective-C的運行時系統在執行方法時知道訊息的接收者是哪個類的對象,它總是攜帶有關“一個對象屬於哪個類”這樣的資訊,該資訊能使系統在運行時做出決定,而不是在編譯時間。 動態綁
Time of Update: 2016-05-26
在進入新版本 的時候,進行推送引導,新版本引導xx效果 具體代碼如下首先建立XMGPushGuideView類 XMGPushGuideView.h 檔案 #import <UIKit/UIKit.h>@interface XMGPushGuideView : UIView/** 載入xib */+(instancetype)guideView;/** 判斷當前的版本號碼,確定是載入推薦引導頁 */+(void)show;@end
Time of Update: 2016-05-26
OC 和 swift 小結,ocswift小結 1 什麼是 OC 語言? OC 語言即物件導向語言,它擴充了 ANSI C 語言,將 SmallTalk 式的訊息傳遞機制加入到 ANSI C 中.它是蘋果 OS 和 iOS 以及相關的 API,Cocoa 和 Cocoa Touch 的主要程式設計語言.2 OC 語言的特點:支援 C 語言文法,是 ANSI-C 語言的一個超集,是一種高效的程式設計語言.是 C
Time of Update: 2016-05-25
【代碼筆記】使圖片兩邊不展開,中間展開,圖片展開代碼:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. //使圖片兩邊不展開,中間展開 UIImage *image = [UIImage imageNamed:@"1.jpg"]; image = [image
Time of Update: 2016-05-25
UI進階 即時通訊之卸載Openfire,uiopenfire首先,確保你已經關掉了openfire開啟終端 (在應用程式-->工具 + 生產力-->)輸入以下命令sudo rm -rf /Library/PreferencePanes/Openfire.prefPanesudo rm -rf /usr/local/openfiresudo rm -rf
Time of Update: 2016-05-25
關於UIImage類的對象兩種初始化方法的區別,uiimage初始化1、imageNamed:1 UIImage *image = [UIImage