周报_2012第51周(2012/12/16-2012/12/22)
2012.12.18
Windows Phone
?
墓碑機(jī)制(多任務(wù))
Launching和Closing方法在通常情況下使用:例如用返回鍵退出,或者從程序列表中啟動(dòng)。
Activated和Deactivated方法用于非常規(guī)方式的進(jìn)入和退出。例如使用返回鍵回到我們的應(yīng)用程序,或者由于接電話而離開程序。
偽造后臺常運(yùn)行的程序:在程序被停用時(shí)保存用戶狀態(tài),在程序被重新激活時(shí)恢復(fù)用戶狀態(tài)。唯一能看到的現(xiàn)象是在程序加載較慢時(shí)出現(xiàn)的Resuming。
?
獨(dú)立存儲(chǔ)
數(shù)據(jù)持久化 - 本地存儲(chǔ)機(jī)制:IsolatedStorageSettings 鍵值對、IsolatedStorageFile。
?
全景視圖控件
Windows Phone Panorama Application
樞軸控件
Windows Phone Pivot Application
LINQ DataBinding ItemsSource
WebBrowser控件
HTML iframe
ScriptNotify事件響應(yīng)JavaScript腳本通信。
?
微軟服務(wù)器的推送通知服務(wù)
1、用戶在手機(jī)中首次運(yùn)行程序時(shí),調(diào)用基于Microsoft.Phone.Notification程序集的Push Notification Service,請求一個(gè)用于通信的定制URI。(創(chuàng)建HttpNotificationChannel,捕獲服務(wù)返回的內(nèi)容事件。)
2、當(dāng)Web Service激發(fā)了一個(gè)事件時(shí),向URI Post Http消息,然后推送通知服務(wù)會(huì)將數(shù)據(jù)發(fā)送到用戶的手機(jī)中(Raw Notification - 原生通知(運(yùn)行的程序)、Toast Notification - 吐司通知(無論是否運(yùn)行)、Tile Notification - 活動(dòng)瓷磚更新(釘在開始界面))。
?
地圖控件
注冊并獲取Bing Map API密鑰
Bing Maps Silverlight Control Interactive SDK
?
控件庫Silverlight Toolkit For? Windows Phone
Chart 圖表
Accordion 手風(fēng)琴
Autocomplete Box 自動(dòng)完成輸入框
ContextMenu 彈出菜單
DatePicker TimePicker
GestureListener 手勢監(jiān)聽事件(Tap、DoubleTap、Hold、Flick、Pinch、Drag and Drop)
ToggleSwitch On/Off切換開關(guān)
WrapPanel StackPanel 布局面板
?
微軟商店 - 類別 Genre
應(yīng)用 Windows Phone Application (App Hub)
or
游戲 XNA (Games Hub)
?
2012.12.19
IPhone
?
開發(fā)環(huán)境
IDE – XCode
UI – Interface Builder(nib - xib)
?
軟件框架 Cocoa Touch (Mac Cocoa) 基于MVC原則設(shè)計(jì)
Foundation Kit & UI Kit (Mac App Kit)
?
輸出口IBOutlet:鏈接nib中對象和用戶界面
屬性@property (retain, nonatomic)…; 訪問方法 get / 修改方法 set
retain 不會(huì)自動(dòng)從內(nèi)存中回收
操作 – (IBAction):sender…;
?
聲明:@property
實(shí)現(xiàn):@synthesize (@implementation)(“get”/set)
?
- (void)dealloc {
[some release]; 手工清理資源
[super dealloc];
}
?
// 應(yīng)用程序委托 – begin -
@import <UIKit/UIKit.h>
?
@class FuncViewController;
?
@interface FuncAppDelegate : NSObject <UIApplicationDelegate> {
IBOutlet UIWindow *window;
IBOutlet FuncViewController *viewController;
}
@property (nonatomic, retain) UIWindow *window;
@property (nonatomic, retain) FuncViewController *viewController;
?
@end
// 應(yīng)用程序委托 – end -
?
Connection Inspector 連接控件事件和輸出口方法
?
自動(dòng)旋轉(zhuǎn)(自動(dòng)調(diào)整屬性)
portrait 320*(460+20)
landscape (300+20)*480
Core Animation
Core Graphics
?
多視圖
根視圖控制器:UITabBarController or UINavigationController (based on UIViewController)
lazy loading 延遲加載多視圖控制器。
超視圖
UIView Animation - 多視圖轉(zhuǎn)換動(dòng)畫
?
Picker View - 選取器
Picker Delegate 選取器代理、Picker Datasource 選取器數(shù)據(jù)源
?
2012.12.20
IPhone
?
nib文件的身份檢查器:File‘s Owner – UIViewController
?
@interface AppDelegate : NSObject <UIApplicationDelegate> {
IBOutlet UIWindow *window;
IBOutlet UITabBarController *rootController; // 根視圖控制器
}
?
轉(zhuǎn)載于:https://www.cnblogs.com/DancingFish/archive/2012/12/18/2822907.html
總結(jié)
以上是生活随笔為你收集整理的周报_2012第51周(2012/12/16-2012/12/22)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 中间代码生成器-5-编译原理
- 下一篇: boostshared_ptr