美空七彩—放心出行app

美空七彩天氣,讓您出行更安全,更放心!

美空七彩天氣軟件包含國內外3000多個城市天氣信息,採用國內外多家氣象機構數據,天氣預報信息準確全面,24小時預報、未來七天天氣預報等。

空氣質量、污染指數、溫度趨勢、pm2.5,空氣質量指數等更加豐富、精準天氣信息!提供穿衣、洗車、紫外線、感冒、運動、旅遊等生活指數,是您日常生活、出行旅遊的必備天氣預報APP!

美空七彩天氣真誠為您提供最精準的天氣和空氣數據信息,一路相伴,一心為你!


技术支持代码展示:

/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *//* NOTE: plugman/cordova cli should have already installed this, but you need the value UIViewControllerBasedStatusBarAppearance in your Info.plist as well to set the styles in iOS 7 */#import "CDVStatusBar.h"#import#importstatic const void *kHideStatusBar = &kHideStatusBar;static const void *kStatusBarStyle = &kStatusBarStyle;@interface CDVViewController (StatusBar)@property (nonatomic, retain) id sb_hideStatusBar;@property (nonatomic, retain) id sb_statusBarStyle;@end@implementation CDVViewController (StatusBar)@dynamic sb_hideStatusBar;@dynamic sb_statusBarStyle;- (id)sb_hideStatusBar { return objc_getAssociatedObject(self, kHideStatusBar);}- (void)setSb_hideStatusBar:(id)newHideStatusBar { objc_setAssociatedObject(self, kHideStatusBar, newHideStatusBar, OBJC_ASSOCIATION_RETAIN_NONATOMIC);}- (id)sb_statusBarStyle { return objc_getAssociatedObject(self, kStatusBarStyle);}- (void)setSb_statusBarStyle:(id)newStatusBarStyle { objc_setAssociatedObject(self, kStatusBarStyle, newStatusBarStyle, OBJC_ASSOCIATION_RETAIN_NONATOMIC);}- (BOOL) prefersStatusBarHidden { return [self.sb_hideStatusBar boolValue];}- (UIStatusBarStyle)preferredStatusBarStyle{ return (UIStatusBarStyle)[self.sb_statusBarStyle intValue];}@end@interface CDVStatusBar ()- (void)fireTappedEvent;

- (void)updateIsVisible:(BOOL)visible;

@end

@implementation CDVStatusBar

- (id)settingForKey:(NSString*)key

{

    return [self.commandDelegate.settings objectForKey:[key lowercaseString]];

}

- (void)observeValueForKeyPath:(NSString*)keyPath ofObject:(id)object change:(NSDictionary*)change context:(void*)context

{

    if ([keyPath isEqual:@"statusBarHidden"]) {

        NSNumber* newValue = [change objectForKey:NSKeyValueChangeNewKey];

        [self updateIsVisible:![newValue boolValue]];

    }

}

-(void)cordovaViewWillAppear:(NSNotification*)notification

{

    [self resizeWebView];

}

-(void)statusBarDidChangeFrame:(NSNotification*)notification

{

    //add a small delay ( 0.1 seconds ) or statusbar size will be wrong

    __weak CDVStatusBar* weakSelf = self;

    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{

        [weakSelf resizeStatusBarBackgroundView];

        [weakSelf resizeWebView];

    });

}

- (void)pluginInitialize

{

    // init

    NSNumber* uiviewControllerBasedStatusBarAppearance = [[NSBundle mainBundle]

你可能感兴趣的:(美空七彩—放心出行app)