Sep 23, 2014

Level Up Kanji

Level Up Kanji



Category: Games
Released: Sep 17, 2014
Version: 1.0.0
Size: 9.9 MB
Language: English

Link: iTunes

Aug 20, 2014

HiraKata Quiz

HiraKata Quiz




Category: Games
Released: Aug 19, 2014
Version: 1.0
Size: 0.6 MB
Language: English

Link: iTunes

Aug 5, 2014

CODING CONVENTIONS FOR OBJCTIVE-C

THANK YOU FOR CLOVER STUDIO




 **********************************************
 *                     CODING CONVENTIONS                     *
 **********************************************

 A. CODING RULES

    1. Each class or category has it's own file
        
        MyClass.h
        MyClass.m
        MyClass+Category.h
        MyClass+Category.m
        
    2. Each class or category has it's own group in project explorer
    
        ∆ Classes Folder
            ∆ MyClass
                MyClass.h
                MyClass.m
              ∆ MyClass+Category
                    MyClass+Category.h
                    MyClass+Category.m
            ∆ TestClass
                TestClass.h
                TestClass.m
                
    3. Never use duplicated code, instead copy/pasting create new method

Jul 31, 2014

CrazyKanji



CrazyKanji

Category: Games
Released: Jul 30, 2014
Version: 1.0
Size: 0.3 MB
Language: English

Link iTunes

Jul 17, 2014

[iOS] How To Read a File From Your Application Bundle

First you need to add your file to the Resources folder of your Xcode project. Then you can access the file like this (assuming the file is called MyFile.txt):

NSString *filePath = [[NSBundle mainBundle] pathForResource:@"MyFile" ofType:@"txt"];
NSData *myData = [NSData dataWithContentsOfFile:filePath];
if (myData) {
    // do something useful
}  

Here’s a complete example reading a help text file into a UIWebView.

NSString *filePath = [[NSBundle mainBundle] pathForResource:@"HelpDoc" ofType:@"htm"];
NSData *htmlData = [NSData dataWithContentsOfFile:filePath];
if (htmlData) {
    [webView loadData:htmlData MIMEType:@"text/html" textEncodingName:@"UTF-8" baseURL:[NSURL URLWithString:@"http://iphoneincubator.com"]];
}  

If you want to read the file into a string, which you can then display in a UITextView, for example, then do this:

NSString *filePath = [[NSBundle mainBundle] pathForResource:@"important" ofType:@"txt"];
if (filePath) {
    NSString *myText = [NSString stringWithContentsOfFile:filePath];
    if (myText) {
        textView.text= myText;
    }

[iOS] Getting current device language in iOS?

NSString * language = [[NSLocale preferredLanguages] objectAtIndex:0]; 
Or

NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSArray* arrayLanguages = [userDefaults objectForKey:@"AppleLanguages"];
NSString* currentLanguage = [arrayLanguages objectAtIndex:0]; 

Or

NSString *language = [[[NSBundle mainBundle] preferredLocalizations] objectAtIndex:0];

Jul 10, 2014

[iOS] how to clear notifications?

[[UIApplication sharedApplication] setApplicationIconBadgeNumber: 0];
[[UIApplication sharedApplication] cancelAllLocalNotifications];