亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? application.mm

?? iPhone winterboard - theme customizer
?? MM
字號:
/* WinterBoard - Theme Manager for the iPhone * Copyright (C) 2008  Jay Freeman (saurik)*//* *        Redistribution and use in source and binary * forms, with or without modification, are permitted * provided that the following conditions are met: * * 1. Redistributions of source code must retain the *    above copyright notice, this list of conditions *    and the following disclaimer. * 2. Redistributions in binary form must reproduce the *    above copyright notice, this list of conditions *    and the following disclaimer in the documentation *    and/or other materials provided with the *    distribution. * 3. The name of the author may not be used to endorse *    or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/#import <Foundation/Foundation.h>#import <CoreGraphics/CGGeometry.h>#import <UIKit/UIKit.h>#define _trace() NSLog(@"WE:_trace(%u)", __LINE__);static NSString *plist_;static NSMutableDictionary *settings_;static BOOL changed_;@interface WBThemeTableViewCell : UITableViewCell {    UILabel *label;}@end@implementation WBThemeTableViewCell@end@interface WBApplication : UIApplication <    UITableViewDataSource,    UITableViewDelegate> {    UIWindow *window_;    UITableView *themesTable_;    NSMutableArray *themesArray_;}@end@implementation WBApplication- (void) dealloc {    [window_ release];    [themesTable_ release];    [themesArray_ release];    [super dealloc];}- (void) applicationWillTerminate:(UIApplication *)application {    if (changed_) {        if (![settings_ writeToFile:plist_ atomically:YES])            NSLog(@"WB:Error:writeToFile");        system("killall SpringBoard");    }}- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {    UITableViewCell *cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero] autorelease];    NSMutableDictionary *theme = [themesArray_ objectAtIndex:[indexPath row]];    cell.text = [theme objectForKey:@"Name"];    cell.hidesAccessoryWhenEditing = NO;    NSNumber *active = [theme objectForKey:@"Active"];    BOOL inactive = active == nil || ![active boolValue];    cell.accessoryType = inactive ? UITableViewCellAccessoryNone : UITableViewCellAccessoryCheckmark;    return cell;}- (void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {    UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];    NSMutableDictionary *theme = [themesArray_ objectAtIndex:[indexPath row]];    NSNumber *active = [theme objectForKey:@"Active"];    BOOL inactive = active == nil || ![active boolValue];    [theme setObject:[NSNumber numberWithBool:inactive] forKey:@"Active"];    cell.accessoryType = inactive ? UITableViewCellAccessoryCheckmark : UITableViewCellAccessoryNone;    [themesTable_ deselectRowAtIndexPath:(NSIndexPath *)indexPath animated:YES];    changed_ = YES;}- (NSInteger) tableView:(UITableView *)table numberOfRowsInSection:(NSInteger)section {    return [themesArray_ count];}- (UITableViewCellEditingStyle) tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {    return UITableViewCellEditingStyleNone;}- (void) tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {    NSUInteger fromIndex = [fromIndexPath row];    NSUInteger toIndex = [toIndexPath row];    if (fromIndex == toIndex)        return;    NSMutableDictionary *theme = [[[themesArray_ objectAtIndex:fromIndex] retain] autorelease];    [themesArray_ removeObjectAtIndex:fromIndex];    [themesArray_ insertObject:theme atIndex:toIndex];    changed_ = YES;}- (BOOL) tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {    return YES;}- (void) applicationDidFinishLaunching:(id)unused {    window_ = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].applicationFrame];    [window_ makeKeyAndVisible];    plist_ = [[NSString stringWithFormat:@"%@/Library/Preferences/com.saurik.WinterBoard.plist",        NSHomeDirectory()    ] retain];    settings_ = [[NSMutableDictionary alloc] initWithContentsOfFile:plist_];    if (settings_ == nil)        settings_ = [[NSMutableDictionary alloc] initWithCapacity:16];    themesArray_ = [settings_ objectForKey:@"Themes"];    if (themesArray_ == nil) {        if (NSString *theme = [settings_ objectForKey:@"Theme"]) {            themesArray_ = [[NSArray arrayWithObject:[[NSDictionary dictionaryWithObjectsAndKeys:                theme, @"Name",                [NSNumber numberWithBool:YES], @"Active",            nil] mutableCopy]] mutableCopy];            [settings_ removeObjectForKey:@"Theme"];        }        if (themesArray_ == nil)            themesArray_ = [NSMutableArray arrayWithCapacity:16];        [settings_ setObject:themesArray_ forKey:@"Themes"];    }    themesArray_ = [themesArray_ retain];    NSMutableSet *themesSet = [NSMutableSet setWithCapacity:32];    for (NSMutableDictionary *theme in themesArray_)        if (NSString *name = [theme objectForKey:@"Name"])            [themesSet addObject:name];    NSFileManager *manager = [NSFileManager defaultManager];    NSMutableArray *themes = [NSMutableArray arrayWithCapacity:32];    [themes addObjectsFromArray:[manager contentsOfDirectoryAtPath:@"/Library/Themes" error:NULL]];    [themes addObjectsFromArray:[manager contentsOfDirectoryAtPath:[NSString stringWithFormat:@"%@/Library/SummerBoard/Themes", NSHomeDirectory()] error:NULL]];    for (NSUInteger i(0), e([themes count]); i != e; ++i) {        NSString *theme = [themes objectAtIndex:i];        if ([theme hasSuffix:@".theme"])            [themes replaceObjectAtIndex:i withObject:[theme substringWithRange:NSMakeRange(0, [theme length] - 6)]];    }    for (NSUInteger i(0), e([themesArray_ count]); i != e; ++i) {        NSMutableDictionary *theme = [themesArray_ objectAtIndex:i];        NSString *name = [theme objectForKey:@"Name"];        if (name == nil || ![themes containsObject:name]) {            [themesArray_ removeObjectAtIndex:i];            --i; --e;        }    }    for (NSString *theme in themes) {        if ([themesSet containsObject:theme])            continue;        [themesSet addObject:theme];        [themesArray_ insertObject:[[NSDictionary dictionaryWithObjectsAndKeys:            theme, @"Name",            [NSNumber numberWithBool:NO], @"Active",        nil] mutableCopy] atIndex:0];    }    themesTable_ = [[UITableView alloc] initWithFrame:window_.bounds];    [window_ addSubview:themesTable_];    [themesTable_ setDataSource:self];    [themesTable_ setDelegate:self];    [themesTable_ setEditing:YES animated:NO];    themesTable_.allowsSelectionDuringEditing = YES;    [themesTable_ setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];}@endint main(int argc, char *argv[]) {    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];    int value = UIApplicationMain(argc, argv, @"WBApplication", @"WBApplication");    [pool release];    return value;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一区不卡| 成人午夜视频在线观看| 亚洲一区二区三区自拍| 亚洲猫色日本管| 亚洲综合色自拍一区| 一区二区在线观看免费视频播放| 中文字幕在线免费不卡| 国产精品欧美一区喷水| 亚洲日本一区二区三区| 亚洲综合在线观看视频| 亚洲www啪成人一区二区麻豆 | 麻豆精品一区二区综合av| 蜜臀va亚洲va欧美va天堂| 麻豆精品一区二区| 国产麻豆一精品一av一免费| 成人综合婷婷国产精品久久蜜臀| 成人久久视频在线观看| 91国产视频在线观看| 91麻豆精品国产无毒不卡在线观看 | 欧美美女一区二区在线观看| 91精品国产一区二区三区香蕉| 日韩欧美国产综合在线一区二区三区| 日韩免费视频一区| 国产精品日产欧美久久久久| 亚洲尤物在线视频观看| 蜜桃久久av一区| 成人激情综合网站| 欧美色爱综合网| 欧美国产一区二区在线观看| 亚洲男人的天堂在线观看| 日韩**一区毛片| 粉嫩久久99精品久久久久久夜 | 欧美日韩你懂的| 国产日韩欧美在线一区| 亚洲自拍欧美精品| 国产成人av影院| 欧美狂野另类xxxxoooo| 久久久久久久久蜜桃| 亚洲福利一二三区| 不卡的看片网站| 日韩欧美资源站| 一区二区三区加勒比av| 国产一区欧美一区| 7777精品伊人久久久大香线蕉完整版| 久久精品水蜜桃av综合天堂| 亚洲第一成人在线| 成人免费毛片app| 精品福利视频一区二区三区| 亚洲一区在线观看视频| 成人污视频在线观看| 精品久久久久av影院 | 亚洲精品一区二区三区精华液| 亚洲欧洲www| 国产高清在线精品| 欧美一区二视频| 亚洲国产裸拍裸体视频在线观看乱了 | 亚洲第四色夜色| 一本大道av伊人久久综合| 久久久久青草大香线综合精品| 日韩激情视频在线观看| 在线观看亚洲一区| 亚洲欧美日韩国产成人精品影院 | 亚洲福利视频一区| 99久久er热在这里只有精品15| 久久婷婷综合激情| 国产资源在线一区| 日韩欧美一区电影| 老司机一区二区| 日韩一区二区三区观看| 亚洲超碰97人人做人人爱| 欧美色电影在线| 亚洲超丰满肉感bbw| 在线精品视频免费播放| 亚洲影视在线播放| 欧美性xxxxxxxx| 午夜精品视频一区| 日韩欧美中文字幕精品| 男女视频一区二区| 精品国产污污免费网站入口 | 99久久精品一区| 中文字幕在线一区免费| 99国产欧美另类久久久精品| 亚洲精品大片www| 欧美日本一区二区三区四区| 午夜亚洲福利老司机| 91精品国产综合久久婷婷香蕉| 蜜桃视频一区二区| 欧美国产一区二区在线观看 | 琪琪一区二区三区| 久久女同互慰一区二区三区| 高清视频一区二区| 18成人在线观看| 欧美日本在线视频| 韩国一区二区视频| 国产精品电影一区二区三区| 欧美综合一区二区| 久久精品国产成人一区二区三区| 久久人人97超碰com| 91一区二区三区在线观看| 亚洲成人av一区二区三区| 精品少妇一区二区三区| 成人国产亚洲欧美成人综合网| 亚洲影视资源网| 精品日韩欧美在线| 99精品视频中文字幕| 天天操天天综合网| 亚洲国产电影在线观看| 欧美电影一区二区三区| 国产v日产∨综合v精品视频| 一区二区三区中文字幕| 日韩午夜激情视频| 波多野结衣中文字幕一区 | 99精品久久久久久| 日韩精品一级中文字幕精品视频免费观看| 亚洲精品一区二区三区福利 | 国产精品综合一区二区| 一区二区三区四区在线| 久久久久久久久久久久久女国产乱| 色综合天天性综合| 国产一区二区视频在线播放| 一区二区不卡在线播放| 国产日韩精品一区二区三区 | 亚洲综合色视频| 久久精品亚洲麻豆av一区二区| 欧美日韩激情一区| 色综合久久综合中文综合网| 国产福利一区二区| 六月婷婷色综合| 视频一区二区欧美| 亚洲精品高清视频在线观看| 欧美国产日韩亚洲一区| 日韩久久精品一区| 337p亚洲精品色噜噜| 色一情一乱一乱一91av| 成人av在线播放网站| 国产精品一卡二卡| 精品一区免费av| 日韩高清不卡在线| 亚洲成人av一区二区| 亚洲午夜激情网站| 亚洲六月丁香色婷婷综合久久| 国产精品久久夜| 国产欧美1区2区3区| 久久午夜电影网| 久久久久国产一区二区三区四区 | 亚洲一区二区视频在线| 亚洲色图一区二区三区| 国产精品家庭影院| 国产精品毛片a∨一区二区三区| 国产网站一区二区| 国产欧美日韩麻豆91| 国产女人18毛片水真多成人如厕 | 不卡一区二区三区四区| 国产91丝袜在线播放九色| 激情偷乱视频一区二区三区| 久久国产精品色| 激情久久五月天| 国产成人午夜精品影院观看视频| 韩国精品免费视频| 国产91富婆露脸刺激对白| 成人av网站免费观看| 99精品偷自拍| 欧美日韩在线观看一区二区| 欧美精品在线观看播放| 欧美一级久久久久久久大片| 日韩丝袜美女视频| 国产网站一区二区| 亚洲天堂免费在线观看视频| 亚洲一区二区三区三| 天堂一区二区在线| 国产一区二区精品在线观看| 国产成人av网站| 91麻豆精品一区二区三区| 欧美日韩亚洲高清一区二区| 日韩欧美国产一区二区三区| 国产亚洲美州欧州综合国| 日韩美女精品在线| 日韩av一区二区在线影视| 99久久99久久精品免费观看| 欧美专区日韩专区| 精品va天堂亚洲国产| 国产精品三级在线观看| 亚洲va欧美va国产va天堂影院| 久久国产婷婷国产香蕉| 91亚洲精品乱码久久久久久蜜桃| 欧美日韩免费一区二区三区| 精品国产乱码久久久久久浪潮| 国产精品护士白丝一区av| 五月婷婷激情综合网| 国产精品亚洲综合一区在线观看| 色成人在线视频| 亚洲精品在线三区| 亚洲精品视频一区二区| 国内一区二区在线| 欧美性猛交xxxx黑人交| 中文av字幕一区| 捆绑调教美女网站视频一区| 欧洲另类一二三四区| 国产欧美中文在线| 日本网站在线观看一区二区三区|