Time of Update: 2016-06-27
XML總結,xml學習總結1. XML 基本概念 擴充標記語言 (Extensible Markup Language, XML) ,用於標記電子檔案使其具有結構性的標記語言,可以用來標記資料、定義資料類型,是一種允許使用者對自己的標記語言進行定義的源語言。格式統一,跨平台和語言,早已成為業界公認的標準。 *xml資料(文檔)自上而下的樹形結構 *<root>
Time of Update: 2016-06-24
【代碼筆記】文字走馬燈效果,代碼筆記走馬燈一,。二,工程圖。三,代碼。RootViewController.h#import <UIKit/UIKit.h>@interface RootViewController : UIViewController@end RootViewController.m#import "RootViewController.h"#import "UXLabel.h"@interface RootViewController
Time of Update: 2016-06-20
iOS- 全方位解析.crash檔案崩潰報告,1.前言 想來每個iOS攻城獅,都免不了要接觸.crash檔案那麼什麼是.crash檔案?iOS
Time of Update: 2016-06-18
【原】iOS學習之UITabBar的隱藏,iosuitabbar 當頁面使用 UITabBarController + UINavigationController 架構的時候,當跳轉到詳情頁面的時候,如果 UITabBar 仍然存在的話就會造成邏輯混亂,使用者體驗也會下降,因此我們就有一個在詳情頁將 UITabBar 隱藏的需求,當然,在其他的一些情況也可能有隱藏 UITabBar 的需求, 在這裡小編為大家介紹三種隱藏 UITabBar
Time of Update: 2016-06-13
iOS 搖一搖的功能,ios功能效果如下相關素材 相關代碼如下#import "ShakeViewController.h"#import <AudioToolbox/AudioToolbox.h>#import <AVFoundation/AVFoundation.h>#define kScreenWidth [UIScreen mainScreen].bounds.size.width#define kScreenHeight [UIScreen
Time of Update: 2016-06-12
OC與Swift的區別三(條件陳述式),ocswift條件陳述式11.swift中的switch結構區別一:oc中switch條件只可以放整數swift中switch條件可以放幾乎任何資料類型區別二:oc中每一個case中應有break,如果沒有break,則會繼續向下貫穿執行case直到碰見break跳出switch結構swift中不需要在case分支最後添加break語句,該case分支執行完成後,會跳出switch結構區別三:oc中不是每個case後面必須有可執行語句,如果某個case分支
Time of Update: 2016-06-10
iOS-NSAttributedString,nsattributedstring一、NSAttributeString簡介 NSAttributedString叫做富文本,是一種帶有屬性的字串,通過它可以輕鬆的在一個字串中表現出多種字型、字型大小、字型大小等各不相同的風格,還可以對段落進行格式化。二、字元屬性 1.NSString *const NSFontAttributeName(字型): 該屬性所對應的值是一個 UIFont
Time of Update: 2016-06-11
iOS 封裝添加按鈕的方法,ios封裝添加按鈕添加按鈕#pragma mark 添加按鈕- (void)addButtonWithImage:(NSString *)image highImage:(NSString *)highImage disableImage:(NSString *)disableImage frame:(CGRect)frame tag:(NSInteger)tag action:(SEL)action{ // 建立按鈕 UIButton *btn = [[
Time of Update: 2016-06-03
【代碼筆記】水波效果,代碼筆記水波一,。二,工程圖。三,代碼。ViewController.h#import <UIKit/UIKit.h>@interface ViewController : UIViewController@end ViewController.m#import "ViewController.h"//加入標頭檔#import "VWWWaterView.h"@interface ViewController
Time of Update: 2016-06-03
功能原始碼(扇形進度)及Delegate運用在開放事件中,扇形delegate1:扇形進度視圖及運用首先先建立扇形的視圖,傳入進度值#import <UIKit/UIKit.h>@interface LHProgressView : UIView@property (nonatomic) float progress;@end#import "LHProgressView.h"#define MinProgress (1.0 / 16.0)@implementation
Time of Update: 2016-06-03
完全定製UITabBarViewController,mvcviewcontroller完全定製UITabBarViewController 效果 源碼https://github.com/YouXianMing/iOS-Project-Examples 中的 TotalCustomTabBarController//// CustomTabBarViewController.h// TotalCustomTabBarController/
Time of Update: 2016-05-31
Object C中的資料類型表,object資料類型表類型例子NSLog charschar'a', '\n' %cshort int — %hi, %hx, %hounsigned short int %hu, %hx, %hoint 12, -97, 0xFFE0, 0177%i, %x, %ounsigned int12u, 100U, 0XFFu%u, %x, %olong int12L, -2001, 0xffffL%li, %lx,
Time of Update: 2016-05-27
BaseControl按鈕合集,basecontrol合集BaseControl按鈕合集 效果 源碼https://github.com/YouXianMing/Animations//// POPBaseControl.h// Animations//// Created by YouXianMing on 16/5/26.// Copyright © 2016年 YouXianMing. All rights reserved.//#import
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-25
處理Xcode 警告,處理xcode警告除了代碼中我們手動加入的#Waring 標示 所產生的警告,我們都應該重視。下面是一些警告的處理。 1,方法到期,或 使用新的api 替換方案
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
建立Podspec 並且發布到github spec,podspecgithub昨天,花了點時間,把自己的代碼做成framework,但是發現,每次遷移項目或者更新項目都是一件很頭疼的事情,索性,也跟著時尚了一回,把所有代碼都扔到git裡面進行管理,通過cococapods直接安裝即可,下面是已經建立完.podspec檔案後,需要做的步驟:1.本地測試是否正常pod lib lint --allow-warnings2.git 上傳至 oschina或者github
Time of Update: 2016-05-20
在NSObject子類中擷取當前螢幕顯示的ViewController,當前viewcontroller 我們在非視圖類中想要隨時展示一個view時,需要將被展示的view加到當前view的子視圖,或用當前view presentViewController,或pushViewContrller,這些操作都需要擷取當前正在顯示的ViewController。代碼如下:(詳細理解請仔細閱讀注釋)#pragma mark 擷取當前螢幕顯示的viewcontroller-
Time of Update: 2016-05-19
ios圖片展開兩種方法,ios展開兩種方法ios圖片展開兩種方法 UIImage *image = [UIImage imageNamed:@"qq"];第一種: // 左端蓋寬度 NSInteger leftCapWidth = image.size.width * 0.5f; // 頂端蓋高度 NSInteger topCapHeight = image.size.height * 0.5f; // 重新賦值 image = [image
Time of Update: 2016-05-19
關於UIView布局的總結,UIView布局總結一下布局UIView1.Laying out Subviews(布局子視圖)系統提供了相關的三個api- (void)