replecewlan是什么么意思

12393人阅读
【cocos2d-x 2.x】(16)
最近在开发过程中遇到很多切换场景的时候概率性崩溃,内存暴增的问题。
因此总结一些开发中需要注意的要点,
1. 切换全屏场景的时候最好使用replaceScene而不是pushScene。
因为pushScene并不会销毁前一个scene,仅仅是将后一个scene按照堆栈的方式加入到前一个scene的上面。如果自身代码中内存管理写的不好的,利用pushScene很难发现该方面的问题,一旦崩溃定位都很难定位。replaceScene可以及早的将隐含的问题给暴露出来。
2. 尽量不要在onEnter里面初始化精灵Sprite
这个就和上一条有点关系了,如果使用了pushScene,那么再popScene的时候是不会调用前一个场景的init方法的,所以有同学就喜欢把一些初始化放在onEnter里面,具体为什么不好,我们来看一下不同切换场景的时候,每个Scene的生命周期就知道了。
假设scene A是活动场景,现在我们用scene B来pushScene替换A,A和B的生命周期是这样的:
B ---- init();
A ---- onExit();
B ---- onEnter();
B ---- onEnterTransitionDidFinish();
此时popScene,弹出scene B,函数调用如下:
B ---- onExit();
B ---- 析构函数被调用
A ---- onEnter();
从上面可以看出以下几点,
1. A的析构函数始终未被调用,因此A一直在内存中。
2. 先执行B的init()函数,之后才调用A的onExit()方法,再之后才调用B的onEnter();所以初始化最好应该放在init中来初始化。在上一个场景退出之前初始化好后一个场景需要的资源。
同样的,我们再来看一下replaceScene切换场景,scene的生命周期
假设scene A是活动场景,现在我们用scene B来replaceScene替换A,A和B的生命周期是这样的:
B ---- init();
A ---- onExit();
A ---- 析构函数被调用
B ---- onEnter();
B ---- onEnterTransitionDidFinish();
此时B replace A回来的调用跟上面一样,如下:
A ---- init();
B ---- onExit();
B ---- 析构函数调用
A ---- onEnter();
3. 一些基本的
CCDirector: &导演,负责场景的切换以及场景的信息。如宽度,高度,旋转场景内容。
CCScene: &&&&场景. 场景包含有布景,精灵,每场戏的不同,要切换场景。游戏中可分为主界面, 游戏, 分数榜,结束界面等。
CCLayer: &&&&布景. 类似是层的概念,也可来源于PS的层的概念。每一层都带有众多精灵等
CCSprite: &&&精灵。就是演员的,演员就需要加入到层里面去的。有相应的动作。
CCAction: &&&动作。精灵的动作。
scene(即 CCScene类)是app 工作流上独立块。scene也叫做 screents 或者“stages”. 一个app可能拥有多个scenes, 但在任何时候只能有一个是激活状态的。
一个cocos2d CCScene 对象 由一个或多个layers组成(layer即CCLayer 对象),layers之间是前后相连的。layer提供了scene的外观 appearance和行为behavior;通常的用法是直接用一个或多个layers实例化一个 CCScene的子类CCTrasitionScene 实现移动transitions
, 提供两个scenes 之间的转移效果((比如fade out/in, slide from a side, 等效果).)由于scenes 是CCNode子类,所以scenes可以手工或者用actions来转变坐标。
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:483583次
积分:4378
积分:4378
排名:第4695名
原创:77篇
转载:43篇
评论:54条
(1)(2)(1)(1)(1)(1)(1)(1)(1)(3)(20)(3)(3)(8)(1)(1)(26)(9)(1)(2)(4)(4)(25)Telstra - StayConnected - Mobiles
Contact us
Enter a phone number and we'll SMS a link to this page.
Mobile number:
Please enter a valid Australian mobile number
Send the link&
The link has been sent.
Stay connected plus
your device back-up plan
StayConnected is your device backup plan. You can swap or replace your device, access important security features and data back-up, and with SolutionHub, you can search, chat and solve most device questions from the palm of your hand.
Explore this page:
Already have StayConnected?& & && & & &
Keep your content
in a safe place.
With the Telstra StayConnected App and the StayConnected online portal, you can:
Back up&your photos, videos and contacts in the cloud (iOS and the Android up to 10 GB).
Locate and alarm&your phone or tablet to help find it (iOS and Android).
Lock and erase&your device to secure your personal content (Android and limited iOS).
Secure&your device with safe browsing, anti-virus and malware security features (Android only).
Swap or replace your device
twice a year
We’ll dispatch a swap or replacement mobile or tablet of the same or similar model (usually a refurbished model) by the next business day.
You can swap or replace up to twice a year (a service fee of up to $220 per swap applies).
Overseas? No problem, we ship anywhere (additional shipping fees apply. Call us for a quote).
To request a swap or get a replacement: Click on &or
Search. Chat. Solve.
With SolutionHub, your
personal tech coach.
No more wasting time searching for your device answers on the internet, just go to SolutionHub. You can Search. Chat. Solve for answers to your device questions.
Available through the Telstra StayConnected App or by calling us on 13 2200.&
You can get StayConnected Plus as part of the check out process when you buy a mobile phone in our online shop.
StayConnected Plus
Price (month to month)
Swap it - Device swap or replacement of the same or similar model (usually a refurbished model) by the next business day#
Up to 2 per 12 months
Service fee of up to $220 applies
Secure it - Mobile Security and Data Backup (iOS and Android devices only)
Solve it with SolutionHub - Mobile Technical Support
Available through the StayConnected App or by calling us on 13 2200
Live help is available during the following hours:
o 7am to 11pm Monday to Friday (AEDST)
o 8am to 10pm Saturday (AEDST)
o 10am to 10pm Sunday (AEDST)
Outside of these hours a concierge service is offered to take messages and arrange call backs.
Get red carpet treatment whenever you need tech support with Telstra Platinum(R). Enjoy exclusive access to coaching, advice and support, so it's easy to get your smart TVs, computers, tablets and more working the way you want. Normally $15/mth, add it today for just $5/mth with a StayConnected(R) subscription. Min cost $240.
*Selected Mobile Security features like anti-virus and malware, safe browsing and remote lock are not available on iOS devices. Remote wipe on iOS devices is only for contacts and requires end user acceptance.
#Device must be in stock and ready to ship. Delivery next business day if the service request is lodged by 2pm AEST.
To take advantage of StayConnected Plus you need to take it up when you are purchasing your new Telstra mobile or tablet with a contract.
Our online shop is always open and you get free delivery within Australia (next day in metro areas).
Our customer service consultants are ready to take your call and answer your StayConnected Plus queries.
Find out more about StayConnected Plus with our friendly business specialists.
To get the StayConnected&Plus service, you'll need to . Once you have done this, you'll get access to the .
You can also
for your iPhone and iPad or
for your Android Phone. The StayConnected App gives you control over many of your StayConnected Plus settings as well as helpful notifications.
Download the Telstra StayConnected App via the
You won't be charged data usage for viewing or using this app unless roaming overseas. (Downloading the app from the app store will count towards your monthly data allowance).
The Telstra StayConnected App and online portal lets you do the following things.
Backup your content – Imagine losing all those precious moments captured on your device
If you can’t access your device, you can still retrieve the data on it. StayConnected backs up your contacts, photos and videos in the cloud (iOS and Android devices up to 10GB).
Locate your device and sound an alarm – Always leaving your device in places you don’t remember?
The StayConnected online portal can help you work out where you left it on a map using our ‘locate’ feature. If the device is nearby, you can sound an alarm to help find it (iOS and Android).
Delete information and lock it – If you can’t find your device, don’t worry, we’ll help you secure it.
Secure personal content remotely by using our erase (Android and limited iOS) and lock feature (Android only) available through the StayConnected online portal.
Selected Mobile Security features like anti-virus, safe browsing and remote lock are not available on iOS devices. Remote wipe on iOS devices are only for contacts and requires end user acceptance.
Secure your device against security threats - Did you know that devices can be exposed to more than 3,000 new security threats* every month?
Browse the internet safely and secure your device with our safe browsing, anti-virus and malware security features (Android only).
* Source: Kaspersky Labs
For more information on StayConnected portal access and secure features.
SolutionHub -&Mobile Technical Support allows you to search, chat and solve your common device questions. Available through the Telstra StayConnected App.
Search -&Interesting facts and handy notifications to help you get the most out of your device,
Chat -&Live online chat with a device expert to help with your device questions
, or dial 13 2200 and say ‘StayConnected, for a personal chat with a tech expert
Live help is available during the following hours:
7am to 11pm Monday to Friday (AEDST)
8am to 10pm Saturday (AEDST)
10am to 10pm Sunday (AEDST)
Solve -&Fast access to self-help advice and tech experts for all your device answers
They can solve problems such as app updates, connecting your phone to a printer or to your car using Bluetooth, and arranging contactless payments through your bank.
Diagnostics tests for your device - Is your device slow or its battery life poor?
StayConnected Plus customers also get access to our diagnostics feature on the Telstra StayConnected App. You can scan your device for apps that might be slowing it down, taking up too much memory or draining your battery (Android and limited iOS).
For more information including a list of mobile and tablet devices compatible with StayConnected and our Data Protection features, download the PDFs below, call 13 22 00 or contact your nearest Telstra store.
If something unexpected happens to your device, you're only a few clicks away from getting your mobile life back to normal.
Submit a service request
(a free call from most Telstra home phones and Telstra mobile phones within Australia). There is a service fee of up to $220 if you want to swap or replace your mobile or tablet. If your device is covered by warranty or consumer guarantee the service fee will not apply.
(Non smartphones)
(Most smartphones and tablets)
(Large smartphones also known as phablets)
Sit back and relax
We'll dispatch the same or similar device (usually refurbished) to you by the next business day# and email you the order details so you can track it online. If a refurbished device of the same make and model as your current mobile model isn’t available we’ll provide you a similar refurbished handset, or you can opt to wait until we have your model in stock.
(If your mobile only needs to be repaired, we’ll provide you with a reply paid satchel so you can send the handset back to us via Australia Post.* Standard repair fees apply.)
Return your device
If the original device is still in your possession you must return your original device within 14 days of receiving the exchange device. If you do not return your original device within this time period you will be charged a Device Non Return Fee.
Restore the content on your swap or replacement device
If you've previously backed up your photos, videos and contacts using the StayConnected App don't forget to reinstall the app, via the Apple store (iOS) or Google Play (Android) to restore your device content. For instructions on restoring your content please visit&&or StayConnected Plus customers can contact 13 2200 for assistance from one of our local tech experts.
* If you need to return your device to us, please remove the battery before posting. If you can’t remove it, or it’s not easily accessible, follow the Australia Post guidelines below:
Wrap your handset with battery still connected, or battery without a handset, in bubble wrap or similar. Each handset or battery must be completely sealed in its own wrapping to cushion it from impact and to ensure it doesn’t come into contact with any other items in the envelope.&
#&Device must be in stock and ready to ship. Delivery next business day if the service request is lodged by 2pm AEST.
We can help complete your order. Chat with us now.
Prefer to talk to someone over the phone? We're here to answer questions about StayConnected.
Have a question about StayConnected? Ask our Customer Forum.
More information about StayConnected can be found in our Frequently Asked Questions.
StayConnected
StayConnected Plus&
StayConnected&
Thanks for your feedback.
We can help right now.
Thank you for your feedback
Back to top
Switch to the desktop计算机基础II(文科)《Visual FoxPro应用基础》期末复习提纲_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
计算机基础II(文科)《Visual FoxPro应用基础》期末复习提纲
上传于||暂无简介
阅读已结束,如果下载本文需要使用0下载券
想免费下载更多文档?
定制HR最喜欢的简历
你可能喜欢

我要回帖

更多关于 wlan是什么 的文章

 

随机推荐