MYSTERY ZILLION တွင် English သို့မဟုတ် Unicode ဖြင့်သာ အသုံးပြုခွင့်ရှိသည်။ ဇော်ဂျီ ၊ ဧရာ စသည်တို့ကို အသုံးပြုခွင့် မရှိ။ Unicode fonts များမှာ Mon3,Yunghkio, Myanamr3 စသည်များ အသုံးပြုနိုင်သည်။ Unicode Guide ကို ဒီမှာ Download ချပါ။ Zawgyi to Unicode Converter
Don't share ebook or software if nobody request. You can find free book websites on here. We are welcome for discussion or asking question instead.

Application didFinishLaunchingWithOptions

ပထမဦးဆုံး စပြရမယ့် page ကို delegate ကနေဘယ်လိုလှမ်းထိန်းရမလဲမသိလို့ပါ။
storyboard ထဲက မြှားပြထားတဲ့ page ကိုပဲ အရင်သွားနေတယ်။ပြီးရင်တော့ သွားစေချင်တဲ့ page ကိုသွားပါတယ်။
ဒါပေမယ့် connection ကျတဲ့ အချိန်ဆိုရင် အရမ်းသိသာနေပါတယ်။အဲ့ဒါကြောင့်မို့လို့ပါ။ထိန်းချင်တဲ့ page ကနှစ်ခုပါ။
php json ကပြန်လာတဲ့ result အရ ပထမဦးဆုံးစပြရမယ့် page ကိုထိန်းချင်တာပါ။
ဘယ်လိုလုပ်ရမလဲ။

Tagged:

မှတ်ချက်များ

  • Administrators

    you can use with

    self.window.rootViewController = myviewcontrllor;
    
  • Registered Users

    AFHTTPClient ကိုသုံးပြီး php ကိုလှမ်းခေါ်တာပါ။

    success:^(AFHTTPRequestOperation *operation, id json)

    အဲ့ဒီ့ အကြောင်းမရောက်သေးရင် lunch image ပဲ ပေါ်သေးတယ်။
    ဒါပေမယ့် အဲ့ဒီ့ အကြောင်းရောက်တာနဲ့ storyboard ကမြှားထိုးထားတဲ့ page ကို ပြတယ်။ပြီးမှ သွားစေချင်တဲ့ page ကို သွားတယ်။အဲ့လိုဖြစ်နေတာ network thread method တွေကြောင့်လားဟင်။

  • Administrators

    I don't know how did you write it ? If you didn't show your code , I can't suggest :)

  • Registered Users

    I'm so sorry, I don't know how to show code.Please tell me how to write code on this site. :D :D

  • edited August 2014 Administrators

    You can use <pre> tag with language code

    <pre lang="objc">
    ......
    your code
    ......
    </pre>
    
    Thanked by 1 saturngod
  • Registered Users

    Thank you, Here is my code:

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
                NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                               [encode keyCodeString], @keyCode,
                                               [encode versionString], @version,
                                               [encode encodeString:currentUserID],@userID,
                                               nil];
                NSURL *baseURL = [NSURL URLWithString:[NSString stringWithFormat:SERVER_URL]];
                AFHTTPClient *client = [[AFHTTPClient alloc]initWithBaseURL:baseURL];
                [client registerHTTPOperationClass:[AFJSONRequestOperation class]];
                [client setDefaultHeader:@Accept value:@application/json];
                [client setDefaultHeader:@Accept-Charset value:@utf-8];
                [client postPath:UserEntry_URL
                      parameters:parameters
                         success:^(AFHTTPRequestOperation *operation, id json){
                             userEntry = [json valueForKeyPath:@userEntry];
                             if ([userEntry isEqualToString:@2 ]) {
                                 [self gotoScreen:@SPDTeamTop];
                             }
                             else{
                                 UIStoryboard *storyboard;
                                 UIViewController *vc;
                                 if (IS_IPHONE_5) {
                                     //iphone5の場合
                                     storyboard = [UIStoryboard storyboardWithName:@MainStoryboard bundle:[NSBundle mainBundle]];
                                     vc =[storyboard instantiateInitialViewController];
                                     UINavigationController *navigationController=[[UINavigationController alloc] initWithRootViewController:vc];
                                     self.window.rootViewController =nil;
                                     self.window.rootViewController = navigationController;
                                     [self.window makeKeyAndVisible];
                                 } else {
                                     storyboard = [UIStoryboard storyboardWithName:@MainStoryboard_3.5 bundle:[NSBundle mainBundle]];
                                     vc =[storyboard instantiateInitialViewController];
                                     UINavigationController *navigationController=[[UINavigationController alloc] initWithRootViewController:vc];
                                     self.window.rootViewController =nil;
                                     self.window.rootViewController = navigationController;
                                     [self.window makeKeyAndVisible];
                                 }
                             }
                         }
                         failure:^(AFHTTPRequestOperation *operation, NSError *error) {
                         }
                 ];
            }
        }
        
        // set NetworkActivityIndicator setting to true
        [AFNetworkActivityIndicatorManager sharedManager].enabled = YES;
    
        [[UIApplication sharedApplication] registerForRemoteNotificationTypes:
         (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
        
        return YES;
    }
    - (void)gotoScreen:(NSString *)theScreen{
        self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
        self.viewController = [[JASidePanelController alloc] init];
        self.viewController.shouldDelegateAutorotateToVisiblePanel = NO;
        UIStoryboard *storyboard;
        if (IS_IPHONE_5) {
             storyboard = [UIStoryboard storyboardWithName:@MainStoryboard bundle:nil];
        } else {
            storyboard = [UIStoryboard storyboardWithName:@MainStoryboard_3.5 bundle:nil];
        }
        UIViewController *ivc = [storyboard instantiateViewControllerWithIdentifier:theScreen];
        self.viewController.centerPanel = [[UINavigationController alloc] initWithRootViewController:ivc];
        if (SYSTEM_VERSION_LESS_THAN(@7.0)) {
            self.viewController.rightPanel = [storyboard instantiateViewControllerWithIdentifier:@JARightViewControllerVersionSix];
        } else {
            self.viewController.rightPanel = [storyboard instantiateViewControllerWithIdentifier:@JARightViewController];
        }
        self.window.rootViewController = self.viewController;
        [self.window makeKeyAndVisible];
    }
    
  • Administrators

    of course , it will wait connection because you didn't init the self.window.rootViewController . You only set the rootViewController after connection finish.

    If the connection fail , you can't use your app anymore :P

    You didn't set the rootViewController at

     failure:^(AFHTTPRequestOperation *operation, NSError *error) {
                         }
    
  • Registered Users

    ကျေးဇူးအများကြီးတင်ပါတယ်။ ရသွားပြီ။ :D :)

Sign In or Register to comment.