美空七彩—放心出行app

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

美空七彩天氣軟件包含國(guó)內(nèi)外3000多個(gè)城市天氣信息,採(cǎi)用國(guó)內(nèi)外多家氣象機(jī)構(gòu)數(shù)據(jù),天氣預(yù)報(bào)信息準(zhǔn)確全面,24小時(shí)預(yù)報(bào)、未來(lái)七天天氣預(yù)報(bào)等。

空氣質(zhì)量、污染指數(shù)、溫度趨勢(shì)、pm2.5,空氣質(zhì)量指數(shù)等更加豐富、精準(zhǔn)天氣信息!提供穿衣、洗車、紫外線、感冒、運(yùn)動(dòng)、旅遊等生活指數(shù),是您日常生活、出行旅遊的必備天氣預(yù)報(bào)APP!

美空七彩天氣真誠(chéng)為您提供最精準(zhǔn)的天氣和空氣數(shù)據(jù)信息,一路相伴,一心為你!


技術(shù)支持代碼展示:

/* 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]

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 轉(zhuǎn)至元數(shù)據(jù)結(jié)尾創(chuàng)建: 董瀟偉,最新修改于: 十二月 23, 2016 轉(zhuǎn)至元數(shù)據(jù)起始第一章:isa和Class一....
    40c0490e5268閱讀 2,099評(píng)論 0 9
  • 1.ios高性能編程 (1).內(nèi)層 最小的內(nèi)層平均值和峰值(2).耗電量 高效的算法和數(shù)據(jù)結(jié)構(gòu)(3).初始化時(shí)...
    歐辰_OSR閱讀 30,286評(píng)論 8 265
  • 午休起來(lái),看了一部電影"萬(wàn)箭穿心"。起初看到這個(gè)名字,總覺(jué)得它像是恐怖片。直到看到片頭的畫(huà)面,又覺(jué)得像是劇情片。 ...
    七公愛(ài)吃雞閱讀 669評(píng)論 0 1

友情鏈接更多精彩內(nèi)容