當前位置:成語大全網 - 新華字典 - CASIO fx-95計算器上的M裏面的資料怎麽刪除?

CASIO fx-95計算器上的M裏面的資料怎麽刪除?

CASIO fx-95計算器上的M裏面的資料怎麽刪除?

刪去的話就變成0,上面的M會消失

方法壹:

恢復出廠設定(用這種方法模式以及ABCDEFXYM表示的數都會恢復(0))

shift+9

3

方法二:

ALPHA+M+(M)

shift+M+(M-)

方法三:

清空資料(用這種方法模式以及ABCDEFXYM表示的數都會恢復(0))

shift+9

2

怎麽刪除plist裏面的資料

主要操作:

1.獲得plist路徑 -(NSString*)getPlistPath;

2.判斷沙盒中名為plistname的檔案是否存在 -(BOOL) isPlistFileExists;

3.讀取沙盒中Document資料夾下的BookList.plist檔案

[NSMutableDictionarydictionaryWithContentsOfFile:plistPath];

4.寫入檔案 if ([plistDictionary writeToFile:plistPath atomically:YES])

WBBooksManager.m檔案:

#import "WBBooksManager.h"

@implementation WBBooksManager

static WBBooksManager *g_instance = nil;

+ (WBBooksManager *)sharedInstance

{

@synchronized(self) {

if ( g_instance == nil ) {

g_instance = [[self alloc] init];

}

}

return g_instance;

}

獲得plist路徑

-(NSString*)getPlistPath{

沙盒中的檔案路徑

NSArray *storeFilePath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

NSString *doucumentsDirectiory = [storeFilePath objectAtIndex:0];

NSString *plistPath =[doucumentsDirectiory stringByAppendingPathComponent:@"WBBooks.plist"]; 根據需要更改檔名

return plistPath;

}

判斷沙盒中名為plistname的檔案是否存在

-(BOOL) isPlistFileExists{

NSString *plistPath =[[WBBooksManager sharedInstance]getPlistPath];

NSFileManager *fileManager = [NSFileManager defaultManager];

if( [fileManager fileExistsAtPath:plistPath]== NO ) {

NSLog(@"not exists");

return NO;

}else{

return YES;

}

}

-(void)initPlist{

NSString *plistPath = [[WBBooksManager sharedInstance] getPlistPath];

如果plist檔案不存在,將工程中已建起的plist檔案寫入沙盒中

if (! [[WBBooksManager sharedInstance] isPlistFileExists]) {

從自己建立的plist檔案 復制到沙盒中 ,方法壹

NSError *error;

NSFileManager *fileManager = [NSFileManager defaultManager];

NSString *bundle = [[NSBundle mainBundle] pathForResource:@"WBBooks" ofType:@"plist"];

[fileManager copyItemAtPath:bundle toPath:plistPath error:&error];

方法二

NSString *path = [[NSBundle mainBundle] pathForResource:@"WBBooks"ofType:@"plist"];

NSMutableDictionary *activityDics = [[NSMutableDictionary alloc] initWithContentsOfFile:path];

[activityDics writeToFile:plistPath atomically:YES];

}

}

判斷key的書是否存在

-(BOOL)isBookExistsForKey:(NSString*)key{

NSString *plistPath = [[WBBooksManager sharedInstance] getPlistPath];

NSMutableDictionary *WBBooksDictionary = [[NSMutableDictionary alloc] initWithContentsOfFile:plistPath];

根目錄下存在名為bookname的字典

if ([WBBooksDictionary objectForKey:key]) {

return YES;

}else{

return NO;

}

}

根據key值刪除對應書籍

-(void)removeBookWithKey:(NSString *)key{

NSString *plistPath = [[WBBooksManager sharedInstance] getPlistPath];

NSMutableDictionary *WBBooksDictionary = [[NSMutableDictionary alloc] initWithContentsOfFile:plistPath];

[WBBooksDictionary removeObjectForKey:key];

[WBBooksDictionary writeToFile:plistPath atomically:YES]; 刪除後重新寫入

}

刪除plistPath路徑對應的檔案

-(void)deletePlist{

NSFileManager *fileManager = [NSFileManager defaultManager];

NSString *plistPath = [[WBBooksManager sharedInstance] getPlistPath];

[fileManager removeItemAtPath:plistPath error:nil];

}

將dictionary寫入plist檔案,前提:dictionary已經準備好

-(void)writePlist:(NSMutableDictionary*)dictionary forKey:(NSString *)key{

NSMutableDictionary *plistDictionary = [[NSMutableDictionary alloc]init];

如果已存在則讀取現有資料

if ([[WBBooksManager sharedInstance]isPlistFileExists]) {

plistDictionary = [[WBBooksManager sharedInstance]readPlist];

}

增加壹個數據

[plistDictionary setValue:dictionary forKey:key]; 在plistDictionary增加壹個key為...的value

NSString *plistPath = [[WBBooksManager sharedInstance] getPlistPath];

if([plistDictionary writeToFile:plistPath atomically:YES]){

NSLog(@"write ok!");

}else{

NSLog(@"ddd");

}

}

-(NSMutableDictionary*)readPlist{

NSString *plistPath = [[WBBooksManager sharedInstance] getPlistPath];

NSMutableDictionary *resultDictionary = [[NSMutableDictionary alloc]initWithContentsOfFile:plistPath];

return resultDictionary;

}

讀取plist檔案內容復制給dictionary 備用

-(void)readPlist:(NSMutableDictionary **)dictionary{

NSString *plistPath = [[WBBooksManager sharedInstance] getPlistPath];

*dictionary = [[NSMutableDictionary alloc] initWithContentsOfFile:plistPath];

}

更改壹條資料,就是把dictionary內key重寫

-(void)replaceDictionary:(NSMutableDictionary *)newDictionary withDictionaryKey:(NSString *)key{

[[WBBooksManager sharedInstance]removeBookWithKey:key];

[[WBBooksManager sharedInstance]writePlist:newDictionary forKey:key];

}

-(NSInteger)getBooksCount{

NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init];

dictionary = [[WBBooksManager sharedInstance] readPlist];

return [dictionary count];

}

CASIO FX-95 型號的計算器怎麽去除sci功能?

SHIFT,9,3,=,AC

CASIO卡西歐計算器fx-95的“DEG”和“SCI”怎麽消?

妳把計算器清屏看看

SHIFT +MODE +3 =

casio fx 5800p裏面的ifend怎樣輸計算器

在程式設計模式中依次按鍵:FUNCTION----3(PROG)----- 6(IfEnd)

雲服務裏面的資料怎麽刪除

妳好!儲存在雲服務的內容是安全的,如需刪除,妳需要覆蓋備份才可以的。

CASIO fx-95 計算器的小數位數如何設定?

同事按下SHIFT鍵CLR鍵數字鍵2和等於號=就可以了

CASIO FX-95 型號的計算器怎麽去除上面的“?”和螢幕中的幾個字母?

無法去除,系統自帶的。

CASIO計算器型號FX-350MS上的M怎麽消除?

先按ALPHA(左上方第二個)+M+這個鍵,再按SHIFT+M+這個鍵就好了