資源簡介
該文檔是蘋果ios微信的搖一搖代碼實現,希望有幫助

代碼片段和文件信息
//
//??AppDelegate.m
//??ShakeYiShakeHa
//
//??Created?by?qianfeng?on?12-6-10.
//??Copyright?(c)?2012年?__MyCompanyName__.?All?rights?reserved.
//
#import?“AppDelegate.h“
#import?“RootViewController.h“
@implementation?AppDelegate
@synthesize?window?=?_window;
-?(void)dealloc
{
????[_window?release];
????[super?dealloc];
}
-?(BOOL)application:(UIApplication?*)application?didFinishLaunchingWithOptions:(NSDictionary?*)launchOptions
{
????self.window?=?[[[UIWindow?alloc]?initWithframe:[[UIScreen?mainScreen]?bounds]]?autorelease];
????//?Override?point?for?customization?after?application?launch.
????
????
????//想搖就寫在這~~~
????application.applicationSupportsShakeToEdit=YES;
????
????
????RootViewController*?rvc=[[RootViewController?alloc]?initWithNibName:@“RootViewController“?bundle:nil];
????
????self.window.rootViewController=rvc;
????[rvc?release];
????
????self.window.backgroundColor?=?[UIColor?whiteColor];
????[self.window?makeKeyAndVisible];
????return?YES;
}
-?(void)applicationWillResignActive:(UIApplication?*)application
{
????/*
?????Sent?when?the?application?is?about?to?move?from?active?to?inactive?state.?This?can?occur?for?certain?types?of?temporary?interruptions?(such?as?an?incoming?phone?call?or?SMS?message)?or?when?the?user?quits?the?application?and?it?begins?the?transition?to?the?background?state.
?????Use?this?method?to?pause?ongoing?tasks?disable?timers?and?throttle?down?OpenGL?ES?frame?rates.?Games?should?use?this?method?to?pause?the?game.
?????*/
}
-?(void)applicationDidEnterBackground:(UIApplication?*)application
{
????/*
?????Use?this?method?to?release?shared?resources?save?user?data?invalidate?timers?and?store?enough?application?state?information?to?restore?your?application?to?its?current?state?in?case?it?is?terminated?later.?
?????If?your?application?supports?background?execution?this?method?is?called?instead?of?applicationWillTerminate:?when?the?user?quits.
?????*/
}
-?(void)applicationWillEnterForeground:(UIApplication?*)application
{
????/*
?????Called?as?part?of?the?transition?from?the?background?to?the?inactive?state;?here?you?can?undo?many?of?the?changes?made?on?entering?the?background.
?????*/
}
-?(void)applicationDidBecomeActive:(UIApplication?*)application
{
????/*
?????Restart?any?tasks?that?were?paused?(or?not?yet?started)?while?the?application?was?inactive.?If?the?application?was?previously?in?the?background?optionally?refresh?the?user?interface.
?????*/
}
-?(void)applicationWillTerminate:(UIApplication?*)application
{
????/*
?????Called?when?the?application?is?about?to?terminate.
?????Save?data?if?appropriate.
?????See?also?applicationDidEnterBackground:.
?????*/
}
@end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-06-10?00:18??ShakeYiShakeHa\
?????文件????????6148??2012-06-10?00:18??ShakeYiShakeHa\.DS_Store
?????目錄???????????0??2012-06-10?00:18??__MACOSX\
?????目錄???????????0??2012-06-10?00:18??__MACOSX\ShakeYiShakeHa\
?????文件??????????82??2012-06-10?00:18??__MACOSX\ShakeYiShakeHa\._.DS_Store
?????目錄???????????0??2012-06-10?00:18??ShakeYiShakeHa\.git\
?????目錄???????????0??2012-06-10?00:01??ShakeYiShakeHa\.git\branches\
?????文件?????????111??2012-06-10?00:01??ShakeYiShakeHa\.git\config
?????文件??????????73??2012-06-10?00:01??ShakeYiShakeHa\.git\desc
?????文件??????????23??2012-06-10?00:01??ShakeYiShakeHa\.git\HEAD
?????目錄???????????0??2012-06-10?00:01??ShakeYiShakeHa\.git\hooks\
?????文件?????????452??2012-06-10?00:01??ShakeYiShakeHa\.git\hooks\applypatch-msg.sample
?????文件?????????896??2012-06-10?00:01??ShakeYiShakeHa\.git\hooks\commit-msg.sample
?????文件?????????160??2012-06-10?00:01??ShakeYiShakeHa\.git\hooks\post-commit.sample
?????文件?????????552??2012-06-10?00:01??ShakeYiShakeHa\.git\hooks\post-receive.sample
?????文件?????????189??2012-06-10?00:01??ShakeYiShakeHa\.git\hooks\post-update.sample
?????文件?????????398??2012-06-10?00:01??ShakeYiShakeHa\.git\hooks\pre-applypatch.sample
?????文件????????1578??2012-06-10?00:01??ShakeYiShakeHa\.git\hooks\pre-commit.sample
?????文件????????4951??2012-06-10?00:01??ShakeYiShakeHa\.git\hooks\pre-reba
?????文件????????1239??2012-06-10?00:01??ShakeYiShakeHa\.git\hooks\prepare-commit-msg.sample
?????文件????????3611??2012-06-10?00:01??ShakeYiShakeHa\.git\hooks\update.sample
?????文件????????1224??2012-06-10?00:04??ShakeYiShakeHa\.git\index
?????目錄???????????0??2012-06-10?00:01??ShakeYiShakeHa\.git\info\
?????文件??????????35??2012-06-10?00:01??ShakeYiShakeHa\.git\info\exclude
?????目錄???????????0??2012-06-10?00:18??__MACOSX\ShakeYiShakeHa\.git\
?????目錄???????????0??2012-06-10?00:18??__MACOSX\ShakeYiShakeHa\.git\info\
?????文件?????????171??2012-06-10?00:01??__MACOSX\ShakeYiShakeHa\.git\info\._exclude
?????目錄???????????0??2012-06-10?00:04??ShakeYiShakeHa\.git\ob
?????目錄???????????0??2012-06-10?00:01??ShakeYiShakeHa\.git\ob
?????文件????????2206??2012-06-10?00:01??ShakeYiShakeHa\.git\ob
?????目錄???????????0??2012-06-10?00:01??ShakeYiShakeHa\.git\ob
............此處省略60個文件信息
評論
共有 條評論