Time of Update: 2018-12-05
一學就用!最近為硬體部搞測試軟體,用VB.NET,需要把測試結果儲存到excel文檔。其中某個功能是EXCEL 的儲存格需要設定顏色。 Dim oExcel As New Microsoft.Office.Interop.Excel.Application Dim obook As Microsoft.Office.Interop.Excel.Workbook Dim oSheet As
Time of Update: 2018-12-05
圖片:
Time of Update: 2018-12-05
最近換了一台mac mini,要把macbook上的項目轉移過去,這兩台電腦都串連到區域網路了,可在mac mini 的shared上找不到macbook電腦。上網查了一番資料,原來mac的檔案分享權限設定很簡單的:在system preferences上,選擇sharing, 點選file sharing即可,另外還可以設定使用者的存取權限,但要注意everyone的許可權,如果everyone的使用權限設定為no
Time of Update: 2018-12-05
-(void)viewDidLoad{ self.title = @"Delete testing"; //添加背景 UIImageView *back = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 320, 480)]; [back setBackgroundColor:[UIColorcolorWithRed:0.5f green:0.5f blue:0.5f alpha:0.8f]]; [self.view addSubview:
Time of Update: 2018-12-05
假設電腦A和電腦B通過RS232串口通訊A 和 B協商使用軟體握手協議(dcb.fOutX = TRUE), 定義XonChar / XoffChar 比如XonChar = 1, XoffChar = 2. 現在, A向B發送字元2, B向A發送字串"helloworld". A能收到字串"helloworld"嗎? 不行的.B向A發送字元1後, A將會收到字串"helloworld". 問題:是A向B發XoffChar? 還是B向A發XoffChar?
Time of Update: 2018-12-05
Cocoa 之多線程 NSThread羅朝輝(http://blog.csdn.net/kesalinCC 許可,轉載請註明出處 更多ios開發部落格,點擊查看iOS 支援多個層次的多線程編程,層次越高的抽象程度越高,使用起來也越方便,也是蘋果最推薦使用的方法。下面根據抽象層次從低到高依次列出iOS所支援的多線程編程範式:1, Thread;
Time of Update: 2018-12-05
NSIndexPath* updatedPath = [NSIndexPath indexPathForRow: 0 inSection: 0]; NSIndexPath* updatedPath2 = [NSIndexPath indexPathForRow: 1 inSection: 0]; NSArray* updatedPaths = [NSArray arrayWithObjects:updatedPath, updatedPath2, nil];
Time of Update: 2018-12-05
先看api的文檔:addObserver:selector:name:object:Adds an entry to the receiver’s dispatch table with an observer, a notification selector and optional criteria: notification name and sender.-
Time of Update: 2018-12-05
暫時只是實現同一個section裡的移動,要跨section移動的話,稍微懂點腦筋就行~代碼:- (void)tableView:(UITableView*)tableViewmoveRowAtIndexPath:(NSIndexPath*)fromIndexPathtoIndexPath:(NSIndexPath *)toIndexPath { if (fromIndexPath != toIndexPath) { id object =
Time of Update: 2018-12-05
最近公司的項目要求在軟體中打包一個硬體裝置的USB驅動程式,即在沒有串連硬體的情況下安裝驅動程式。微軟的WDK有提供API實現這個功能。所以,需要先下載WDK。WDK:http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=11800WDK中 函數DriverPackageInstall 就是實現這個功能的! #include <difxapi.h>...............
Time of Update: 2018-12-05
long long time ago,I meet a problem that is: iPhone模擬器死活不出來,程式Log看出一切運行正常,裝置調試一切正常。 因為我的iPad模擬器好使,選中模擬器,上面功能表列選擇-iOS模擬器-還原內容和設定... 令我吃驚的是:iPad模擬器也沒了。。。(如果是這種情況,可直接看最後一步) 原因:是iPhone/iPad模擬器跑到螢幕外了,也許是我們不經意間的一次拖拽,模擬器再也無法回到螢幕可見地區了。 解決辦法:
Time of Update: 2018-12-05
UIButton* modalViewButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 60, 40)];[modalViewButton addTarget:self action:@selector(backButtonAction) forControlEvents:UIControlEventTouchUpInside];[modalViewButton setImage:[UIImage
Time of Update: 2018-12-05
由於第一個iPhone程式就使用到了資料庫,所以首先來說下iPhone資料庫的使用。iPhone使用的是sqlite資料庫,我用了firefox的外掛程式SqliteManager來管理sqlite,這個外掛程式很好用,可以很方便的進行視圖化的建立以及管理sqlite。廢話不多說,進入正題。要使用sqlite首先要在Frameworks中引入libsqlite3.0.dylib這個檔案,具體步驟我就略過了,然後建立資料庫,建好後將資料庫添加到Resources目錄下(記得勾選Copyitems
Time of Update: 2018-12-05
- (void)loadView {[super loadView];//イメージビュー產生_imageView=[[UIImageView alloc] init];UIImage* image=[UIImage imageNamed:@"image.jpg"];[_imageView setImage:image];[_imageView setFrame:CGRectMake(0,0,image.size.width,image.size.height)];[self.view
Time of Update: 2018-12-05
說明:依系統設定的語言自動切換適合的顯示字串操作:在Interface Builder設計時的介面若系統設定為English則顯示英文介面若系統設定為繁體中文則顯示為中文介面如何建立自定的語系檔:1.在Resources分類下新增檔案 [右鍵/Add/New File...]2.在範本的分類選擇Other後再選擇 Strings File3.將存檔檔名設定為 Localizable.strings4.在 Localizable.strings 檔案上按右鍵並選擇 Get
Time of Update: 2018-12-05
//// QQstyleTableViewViewController.h// QQstyleTableView//// Created by xhan on 9/22/09.// Copyright In-Blue 2009. All rights reserved.//#import <UIKit/UIKit.h>@interface QQstyleTableViewViewController : UIViewController <
Time of Update: 2018-12-05
對於一個運行在iPhone得app,它只能訪問自己根目錄下得一些檔案(所謂sandbox).一個app發布到iPhone上後,它得目錄結構如下:1、其中得 app root 可以用 NSHomeDirectory() 訪問到;2、Documents 目錄就是我們可以用來寫入並儲存檔案得地方,一般可通過:NSArray*paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
Time of Update: 2018-12-05
題目連結地址:http://acm.hdu.edu.cn/showproblem.php?pid=1251 如給定字串集合abcd,abd,cdd,efg,hij,hi六個字串建立的trie tree如所示: 代碼: #include<iostream>using namespace std;const int kind=26;//字母種類struct Treenode//樹的結點結構{ int
Time of Update: 2018-12-05
關於TableView中圖片的延時載入經常我們會用tableView顯示很多條目, 有時候需要顯示圖片, 但是一次從伺服器上取來所有圖片對使用者來浪費流量, 對伺服器也是負擔.最好是按需載入,即當該使用者要瀏覽該條目時再去載入它的圖片.重寫如下方法- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{
Time of Update: 2018-12-05
今天英語上機課,做了一個測驗,感覺不是很好。 這個時間,本應該是背單詞,或者做acm題目的,畢竟兩者我目前都做的不好......鼓勵自己點也就是說,上升潛力還很大。不知道怎麼回事,和周圍的人都有隔閡的,也許是性格原因吧,也許這也會對我畢業後產生影響,“人之所以痛苦,在於追求錯誤的東西”....儘管我現在並不痛苦。 我曾n次的決心不受外面的事情所幹擾,但我做的並不好,幹擾還是挺大的。 今天我真正想寫這篇日誌的原因是: