Time of Update: 2018-12-08
一、 基本路由器的檢驗命令 show version show processes show protocols show mem show ip route show startup-config show running-config show flash show interfaces 二、 基本路由配置命令 進入:config terminal/memory/network 配置網路時常採用的命令:copy和load 1. 標識:hostname 標識名 2. 啟動標識:banner
Time of Update: 2018-12-08
1、備份CATOS和MSFC的配置。2、將IOS檔案放到slot0的FLASH卡中。如c6sup12-jsv-mz.121-11b.EX13、使用dir slot0:命令確認該檔案已經在slot0中的flash卡中4、配置Catos啟動參數,下次將啟動到ROMMON中: Console>(enable)set boot config-register 0x05、切換到MSFC中: Console>(enable)session 156、修改MSFC的配置參數:Router#
Time of Update: 2013-11-16
Ratchet 讓移動開發人員僅使用簡單 HTML,CSS 和 Javascript 組件就能夠快速的製作出 iPhone 應用程式的原型。Ratchet 提供了眾多效果類似原生應用的介面組件,另外 Push.js 可以協助開發人員把頁面連結起來並在 iPhone 上預覽。您可能感興趣的相關文章Debuggex – 超好用的Regex可視化調試工具Transit – 超平滑的 CSS 過渡和變換動畫效果外掛程式Squel.js –
Time of Update: 2013-11-16
將UIScrollView的捲軸一直顯示。查了一下UIScrollView的方法和屬性,發現沒有相應的方法,只有一個flashScrollIndicators相對靠譜點,但是他只會顯現捲軸一小段時間,然後會自動消失。我總不能起一個定時器,一直在刷這個方法吧。在stackoverflow上搜尋了一下,最後的解決方案指向這個頁面。貼出原始碼如下: 1. #define noDisableVerticalScrollTag 836913 2. #define
Time of Update: 2013-11-16
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; // Override point for customization after application launch. self.window.backgroundColor = [UIColor whiteColor]; [self.window
Time of Update: 2013-11-16
這篇文章使用了NSXMLParser。 NSXMLParser *parser=[[NSXMLParser alloc] initWithData:[xml dataUsingEncoding:NSUTF8StringEncoding]]; // NSXMLParser *parser=[[NSXMLParser alloc] initWithContentsOfURL:[NSURL
Time of Update: 2013-11-16
一直沒仔細看過KVC的用法,想當然的認為可以在NSObject對象中存入任意索引值對,結果使用時碰到問題了。 一個簡單的位移動畫:CAKeyframeAnimation *keyPosi=[CAKeyframeAnimation animationWithKeyPath:==]; 我想要在動畫結束後把UILabel從螢幕上移除,於是加上動畫結束後的回調:- ()animationDidStop:(CAAnimation
Time of Update: 2013-10-28
步驟一:在resource檔案夾下找到該項目的info.plist添加一個Required background modes 的數組並在下面添加一個元素,其值為App plays audio步驟二:需要匯入相應的framework和標頭檔#import <AudioToolbox/AudioToolbox.h>#import
Time of Update: 2013-10-28
在 4.0 之後,系統就有了它自己的類(NSRegularExpression,NSRegularExpression)來使用Regex,,之前都是要添加第三方類庫 RegexKitLite 來使用 這兩個類的簡單使用: NSString *str = @"3sdfh*odsi"; //匹配第一個字元是數字 NSRegularExpression *regex1 = [NSRegularExpression
Time of Update: 2013-10-28
AssetsLibrary架構提供了ALAssetsLibrary類來協助我們訪問相簿程式管理下的照片和視頻,官方文檔見此。if (!self.assetsLibrary) { _assetsLibrary = [[ALAssetsLibrary alloc] init]; }通過該架構,我們可以擷取相簿清單:[_assetsLibrary enumerateGroupsWithTypes:ALAssetsGroupAll usingBlock:^(ALAssetsGroup *group,
Time of Update: 2013-10-28
三種集合類來收集cocoa對象(NSObject對象): NSArray 用於對象有序集合(相當於是數組) NSSet
Time of Update: 2013-10-28
1、當需要使用int類型的變數的時候,可以像寫C的程式一樣,用int,也可以用NSInteger,但更推薦使用NSInteger,因為這樣就不用考慮裝置是32位的還是64位的。2、NSUInteger是無符號的,即沒有負數,NSInteger是有符號的。3、有人說既然都有了NSInteger等這些基礎類型了為什麼還要有NSNumber?它們的功能當然是不同的。NSInteger是基礎類型,但是NSNumber是一個類。如果想要儲存一個數值,直接用NSInteger是不行的,比如在一個
Time of Update: 2013-10-28
1. ios提供了兩種高品質的圖形繪製方法: a. OpenGL ES進行渲染 b.Quartz,Core Animation, UIKit進行繪製 2. OpenGL ES架構主要適用於遊戲或者高幀率的應用程式開發。基於C語言的介面,用於建立2D和3D內容。 UIKit的圖形系統 3. iOS中所有的描畫,無論OpenGL ES, Quartz, UIKit, 或者Core Animation 都發生在UIView對象的地區內. 4.
Time of Update: 2013-10-28
1、寫了一個小Demo,實現上下移動的: 主要代碼如下: - (IBAction)upChange:(id)sender { if (typeView == down) { [self.downBtn setHidden:NO]; [self.upBtn setHidden:NO]; [UIView animateWithDuration:0.5 animations:^{ self.upView.center =
Time of Update: 2013-10-28
DB類之.h檔案#import <Foundation/Foundation.h>#import <sqlite3.h>@interface DB : NSObject+(sqlite3 *)openDB;//開啟資料庫-(void)closeDB;//關閉資料庫@endDB類之.m檔案#import "DB.h"#import <sqlite3.h>static sqlite3 *db =
Time of Update: 2013-10-28
在類中,進行編輯下面的代碼:NSLog(@"main thread begin...");[self performSelectorInBackground:@selector(doSomething:) withObject:nil];NSLog(@"main thread end.....");- (void) doSomething:(id)sender{NSLog( @"one thread begin..." );
Time of Update: 2013-10-28
庫的基本記憶體管理原則 Apple為開發人員提供了大量的庫,庫中包含的各種類的記憶體管理原則如下。 1.如果對象使用-初始化方法建立,那麼對象僅僅對引用計數加1,也就是內部執行一次retain操作。 2.如果對象使用+初始化對象(相當於java或者C++的static方法),那麼對象不但對引用計數加1,還自動執行autorelease操作。 3.使用@property (retain) 聲明的屬性,將會在第一次賦值時,執行retain操作。
Time of Update: 2013-10-28
actionSheet當與ToolBar或TabBar在同一個頁面時,會出現ToolBar或TabBar擋住actionSheet上的button點擊功能,但actionsheet上的button照樣能正常顯示,卻不能點擊。這時不能再使用ShowInView而是使用[actionSheetshowFromToolbar:self.toolBar]或[actionSheet
Time of Update: 2013-10-28
首先寫一個單例類,繼承NSObject check.h檔案中 @property(strong ,nonatomic) UITable * Table; @property(strong ,nonitomic) UITextFiled * Text; +(check*)shareDataModle; check.m中 //定義一個靜態checke類的對象,並賦給一個空值 static check * dataModle =
Time of Update: 2013-10-28
初步學習IOS(IPad/IPhone)開發,這兩天在介面布局上花了很多時間。 IOS的介面方法有兩種方式: 1 使用Interface Builder建立介面,然後和相應的controller相關聯 2