* Available for iOS 7
* Group path is different in iOS 7 and 8
ios7:file:///private/var/mobile/Containers/Shared/AppGroup/xxx
ios8:file:///private/var/mobile/Containers/xxx
* Userdeafults can't share in iOS7, but it won't raise any error.
* Enable App Groups will add *.entitlements in proj
* Delete all app relate to the App Groups, system will delete the dir in AppGroup either, next time install the app will use another UUID
- (IBAction)doSet:(id)sender{ NSUserDefaults *def = [[NSUserDefaults alloc] initWithSuiteName:@"group.myappgroup"]; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; NSString *s = [dateFormatter stringFromDate:[NSDate date]]; NSLog(@"set value:%@",s); [def setValue:s forKey:@"dt"]; [def synchronize]; } - (IBAction)doGet:(id)sender{ NSUserDefaults *def = [[NSUserDefaults alloc] initWithSuiteName:@"group.myappgroup"]; NSLog(@"%@", [def valueForKey:@"dt"]); self.title = [def valueForKey:@"dt"]; } - (IBAction)doWrite:(id)sender{ NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; NSString *s = [dateFormatter stringFromDate:[NSDate date]]; NSURL *url = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:@"group.myappgroup"]; url = [url URLByAppendingPathComponent:@"a.dat"]; NSLog(@"%@",url.absoluteString); NSError *err = NULL; [s writeToURL:url atomically:YES encoding:NSUTF8StringEncoding error:&err]; if(err){ NSLog(@"err:%@",err.description); } } - (IBAction)doReadFile:(id)sender{ NSURL *url = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:@"group.myappgroup"]; url = [url URLByAppendingPathComponent:@"a.dat"]; NSLog(@"%@",url.absoluteString); NSError *err = NULL; NSString *s = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:&err]; if(!err){ NSLog(@"%@",s); self.title = s; }else{ NSLog(@"err:%@",err.description); } }
相关推荐
鼎捷ERP二维码整体解决方案 Tiptop GP条码管理系统 鼎捷ERP移动解决方案 鼎捷条码扫描 鼎捷WMS仓库移动扫码 鼎捷安卓PDA扫码方案 Tiptop 出入库盘点出货条码扫码 鼎捷安卓APP方案 Tiptop GP二次开发 鼎捷ERP移动办公...
Tip Of Day. It`s name speaks for itself.
JavaScript
Better Tip of the Day dialog典型的Did you konw...对话框(26KB)
This paper established the model to study the impacts on the machining accuracy of heavy gantry machine of uneven foundation settlement on the basis of the overall model of the machine to simplify, ...
Tip类demo Tip类demo Tip类demo Tip类demo Tip类demo Tip类demo
Because in different RDBMS, filed value of date type has different precision, DB Query Analyzer will return the different date type value correspond to the RDBMS.
iOS 漂亮的 Tip 效果组件.zip,Objective-C alternative for EasyTipView implemented in swift
DB Query Analyzer provides a pop menu to generate frequent used SQL statement coincided with the connected RDBMS. This function of DB Query Analyzer is applicable to all kinds of RDBMS.
DB Query Analyzer provides a useful function that you can sort a field of result in grid by click the title. Once click will sort by ascending. Click again will alter to descending.
DB Query Analyzer provides ‘Object View’ by which you can get well know of DD in databases. I will show you how to get the fields in some table through the ‘Object View’.
Up to Nov 21,2014, the latest version of DB Query Analyzer is 6.02. In 6.02, if you selected the option 'SQL Schedule Reconnect' in window configurations, the Schedule SQL scripts will be executed as ...
The latest version of DB Query Analyzer is 6.01. In 6.01, users are allowed to add, delete or update SQL Execute Schedule in the current MDI Child Form. By doing this, you can not only avoid ...
It's very convenient to annotate some script in DB Query Analyzer. Two ways are provided for you to annotate some script. Furthermore, you can execute selected SQL statement only.
In this essay I will demonstrate how to display the content of a certain function in DB2 by DB Query Analyzer.
Tip-Calculator-App
DB Query Analyzer has a useful function to select a row in grid filled with query record set returned by RDBMS.
In DB Query Analyzer, it's very convenient to search key word in SQL edit/ Result area.
Optimal Tip-To-Tip Efficiency(弟高值d2f算法).pdf Optimal Tip-To-Tip Efficiency(弟高值d2f算法).pdf Optimal Tip-To-Tip Efficiency(弟高值d2f算法).pdf Optimal Tip-To-Tip Efficiency(弟高值d2f算法).pdf ...
It‘s very powerful for DB Query Analyzer in text file process. I’ll give you a sample to show its powerful fuction. Please make sure that column name coinciding with the data should be included in ...