diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..93d7512 Binary files /dev/null and b/.DS_Store differ diff --git a/Lesson04_homework/GCDDemo/GCDDemo.xcodeproj/project.pbxproj b/Lesson04_homework/GCDDemo/GCDDemo.xcodeproj/project.pbxproj new file mode 100644 index 0000000..f4f3860 --- /dev/null +++ b/Lesson04_homework/GCDDemo/GCDDemo.xcodeproj/project.pbxproj @@ -0,0 +1,279 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 2F616D94208DFBE600462990 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F616D93208DFBE600462990 /* main.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 2F616D8E208DFBE600462990 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = /usr/share/man/man1/; + dstSubfolderSpec = 0; + files = ( + ); + runOnlyForDeploymentPostprocessing = 1; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 2F616D90208DFBE600462990 /* GCDDemo */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = GCDDemo; sourceTree = BUILT_PRODUCTS_DIR; }; + 2F616D93208DFBE600462990 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 2F616D8D208DFBE600462990 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 2F616D87208DFBE600462990 = { + isa = PBXGroup; + children = ( + 2F616D92208DFBE600462990 /* GCDDemo */, + 2F616D91208DFBE600462990 /* Products */, + ); + sourceTree = ""; + }; + 2F616D91208DFBE600462990 /* Products */ = { + isa = PBXGroup; + children = ( + 2F616D90208DFBE600462990 /* GCDDemo */, + ); + name = Products; + sourceTree = ""; + }; + 2F616D92208DFBE600462990 /* GCDDemo */ = { + isa = PBXGroup; + children = ( + 2F616D93208DFBE600462990 /* main.m */, + ); + path = GCDDemo; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 2F616D8F208DFBE600462990 /* GCDDemo */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2F616D97208DFBE600462990 /* Build configuration list for PBXNativeTarget "GCDDemo" */; + buildPhases = ( + 2F616D8C208DFBE600462990 /* Sources */, + 2F616D8D208DFBE600462990 /* Frameworks */, + 2F616D8E208DFBE600462990 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = GCDDemo; + productName = GCDDemo; + productReference = 2F616D90208DFBE600462990 /* GCDDemo */; + productType = "com.apple.product-type.tool"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 2F616D88208DFBE600462990 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0930; + ORGANIZATIONNAME = "丁磊"; + TargetAttributes = { + 2F616D8F208DFBE600462990 = { + CreatedOnToolsVersion = 9.3; + }; + }; + }; + buildConfigurationList = 2F616D8B208DFBE600462990 /* Build configuration list for PBXProject "GCDDemo" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 2F616D87208DFBE600462990; + productRefGroup = 2F616D91208DFBE600462990 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 2F616D8F208DFBE600462990 /* GCDDemo */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 2F616D8C208DFBE600462990 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2F616D94208DFBE600462990 /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 2F616D95208DFBE600462990 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "Mac Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.13; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + }; + name = Debug; + }; + 2F616D96208DFBE600462990 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "Mac Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.13; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + }; + name = Release; + }; + 2F616D98208DFBE600462990 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = JGMUD2VWJ4; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 2F616D99208DFBE600462990 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = JGMUD2VWJ4; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 2F616D8B208DFBE600462990 /* Build configuration list for PBXProject "GCDDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2F616D95208DFBE600462990 /* Debug */, + 2F616D96208DFBE600462990 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2F616D97208DFBE600462990 /* Build configuration list for PBXNativeTarget "GCDDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2F616D98208DFBE600462990 /* Debug */, + 2F616D99208DFBE600462990 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 2F616D88208DFBE600462990 /* Project object */; +} diff --git a/Lesson04_homework/GCDDemo/GCDDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Lesson04_homework/GCDDemo/GCDDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..e210a53 --- /dev/null +++ b/Lesson04_homework/GCDDemo/GCDDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Lesson04_homework/GCDDemo/GCDDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Lesson04_homework/GCDDemo/GCDDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Lesson04_homework/GCDDemo/GCDDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Lesson04_homework/GCDDemo/GCDDemo.xcodeproj/project.xcworkspace/xcuserdata/hikari.xcuserdatad/UserInterfaceState.xcuserstate b/Lesson04_homework/GCDDemo/GCDDemo.xcodeproj/project.xcworkspace/xcuserdata/hikari.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..a07f3ac Binary files /dev/null and b/Lesson04_homework/GCDDemo/GCDDemo.xcodeproj/project.xcworkspace/xcuserdata/hikari.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Lesson04_homework/GCDDemo/GCDDemo.xcodeproj/xcuserdata/hikari.xcuserdatad/xcschemes/xcschememanagement.plist b/Lesson04_homework/GCDDemo/GCDDemo.xcodeproj/xcuserdata/hikari.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..fc82a19 --- /dev/null +++ b/Lesson04_homework/GCDDemo/GCDDemo.xcodeproj/xcuserdata/hikari.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + GCDDemo.xcscheme + + orderHint + 0 + + + + diff --git a/Lesson04_homework/GCDDemo/GCDDemo/main.m b/Lesson04_homework/GCDDemo/GCDDemo/main.m new file mode 100644 index 0000000..3b69152 --- /dev/null +++ b/Lesson04_homework/GCDDemo/GCDDemo/main.m @@ -0,0 +1,118 @@ +// +// main.m +// GCDDemo +// +// Created by 丁磊 on 2018/4/23. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import +struct mytimespec{ + double sec; + double nsec; +}; + +int main(int argc, const char * argv[]) { + @autoreleasepool { + + struct mytimespec date; + // 串行队列的创建 + dispatch_queue_t queue1 = dispatch_queue_create("testqueue.1", DISPATCH_QUEUE_SERIAL); + + // 并发队列的创建 + dispatch_queue_t queue2 = dispatch_queue_create("testqueue.2", DISPATCH_QUEUE_CONCURRENT); + double date1 = [[NSDate date] timeIntervalSince1970]; + // 在队列里追加同步任务 + dispatch_sync(queue1, ^{ + NSLog(@"test------queue1%@",[NSThread currentThread]); + [NSThread sleepForTimeInterval:3]; + }); + double date2 = [[NSDate date]timeIntervalSince1970]; + date.sec = date2 - date1; + date.nsec = date.sec * 1000000000; + NSLog(@"秒数为 %lf, 纳秒数为 %lf",date.sec,date.nsec); + +// 实现dispatch_sync + dispatch_sync(queue1, ^{ + NSLog(@"test1------queue1%@",[NSThread currentThread]); + }); + dispatch_sync(queue1, ^{ + NSLog(@"test2------queue1%@",[NSThread currentThread]); + }); + dispatch_sync(queue1, ^{ + NSLog(@"test3------queue1%@",[NSThread currentThread]); + }); + dispatch_async(queue1, ^{ + NSLog(@"test4------queue1%@",[NSThread currentThread]); + }); + +// 测试优先级 + dispatch_queue_t mainDispatchQueue = dispatch_get_main_queue(); + + dispatch_queue_t globalDispatchQueueHigh = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0); + + dispatch_queue_t globalDispatchQueueDefaut = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); + + dispatch_queue_t globalDispatchQueueLow = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0); + + dispatch_queue_t globalDispatchQueueBack = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0); + + dispatch_async(mainDispatchQueue, ^{ + NSLog(@"test main %@",[NSThread currentThread]); + }); + + dispatch_async(globalDispatchQueueLow, ^{ + NSLog((@"test low %@"),[NSThread currentThread]); + }); + + dispatch_async(globalDispatchQueueBack, ^{ + NSLog(@"test back %@",[NSThread currentThread]); + }); + + dispatch_async(globalDispatchQueueHigh, ^{ + NSLog(@"test high %@",[NSThread currentThread]); + }); + + dispatch_async(globalDispatchQueueDefaut, ^{ + NSLog(@"test defaut %@",[NSThread currentThread]); + }); + +// 实现dispatch_set_target_queue + + void (^queue3)() = ^(){ + NSLog(@"test5------queue3%@",[NSThread currentThread]); + }; + + dispatch_queue_t queue4 = dispatch_queue_create("testqueue.5", DISPATCH_QUEUE_CONCURRENT); + dispatch_sync(queue4, ^{ + NSLog(@"test queue4------%@",[NSThread currentThread]); + }); + + dispatch_set_target_queue(queue4, queue1); + + dispatch_sync(queue1, queue3); + + dispatch_group_t group = dispatch_group_create(); +// dispatch_queue_t queue7 = dispatch_get_gloabl_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); + + dispatch_group_async(group, globalDispatchQueueDefaut, ^{ + NSLog(@"blk0"); + + }); + + dispatch_group_async(group,globalDispatchQueueDefaut, ^{ + NSLog(@"blk1"); + + }); + + dispatch_group_async(group, globalDispatchQueueDefaut, ^{ + NSLog(@"blk2"); + + }); + dispatch_group_notify(group, dispatch_get_main_queue(), ^{NSLog(@"done");}); +// dispatch_release(group); + + + } + return 0; +} diff --git "a/Lesson04_homework/\344\275\234\344\270\232.md" "b/Lesson04_homework/\344\275\234\344\270\232.md" new file mode 100644 index 0000000..e1feeb3 --- /dev/null +++ "b/Lesson04_homework/\344\275\234\344\270\232.md" @@ -0,0 +1,79 @@ +#作业 +Main Dispatch Queue +>*/ +dispatch_queue_t mainDispatchQueue = dispatch_get_main_queue(); +/* +Global Dispatch Queue(高) +*/ +dispatch_queue_t globalDispatchQueueHigh = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0); +/* +Global Dispatch Queue(默认) +*/ +dispatch_queue_t globalDispatchQueueHigh = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); +/* +Global Dispatch Queue(低) +*/ +dispatch_queue_t globalDispatchQueueHigh = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0); +/* +Global Dispatch Queue(后台) +*/ +dispatch_queue_t globalDispatchQueueHigh = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0); +思考:这种优先级一定会有吗? + +这种优先级并不绝对存在,优先级只是告诉系统优先执行,并非首先执行,也并不代表先结束执行。并且在异步多线程中,那一个线程先执行是不知道的。 + +>练习:NSDate合成struct timespec类型 + +``` +struct mytimespec{ + double sec; + double nsec; +}; + + double date1 = [[NSDate date] timeIntervalSince1970]; + double date2 = [[NSDate date]timeIntervalSince1970]; + date.sec = date2 - date1; + date.nsec = date.sec * 1000000000; +``` + +>思考:查看输出结果,为什么有这种现象。练习:使用另两种方法实现。(dispatch_set_target_queue,dispatch_sync或dispatch_group_wait) + + +输出结果 +![Alt text](./屏幕快照 2018-05-03 下午11.04.44.png) +在异步执行中,开启新队列,而实现顺序是系统随机的 + + + + +``` +// 实现dispatch_sync + dispatch_sync(queue1, ^{ + NSLog(@"test1------queue1%@",[NSThread currentThread]); + }); + dispatch_sync(queue1, ^{ + NSLog(@"test2------queue1%@",[NSThread currentThread]); + }); + dispatch_sync(queue1, ^{ + NSLog(@"test3------queue1%@",[NSThread currentThread]); + }); + dispatch_async(queue1, ^{ + NSLog(@"test4------queue1%@",[NSThread currentThread]); + }); + +// 实现dispatch_set_target_queue + + void (^queue3)() = ^(){ + NSLog(@"test5------queue3%@",[NSThread currentThread]); + }; + + dispatch_queue_t queue4 = dispatch_queue_create("testqueue.5", DISPATCH_QUEUE_CONCURRENT); + dispatch_sync(queue4, ^{ + NSLog(@"test queue4------%@",[NSThread currentThread]); + }); + + dispatch_set_target_queue(queue4, queue1); + + dispatch_sync(queue1, queue3); +``` + diff --git "a/Lesson04_homework/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-03 \344\270\213\345\215\21011.04.44.png" "b/Lesson04_homework/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-03 \344\270\213\345\215\21011.04.44.png" new file mode 100644 index 0000000..1e5c913 Binary files /dev/null and "b/Lesson04_homework/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-03 \344\270\213\345\215\21011.04.44.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/.DS_Store" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/.DS_Store" new file mode 100644 index 0000000..a1377a7 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/.DS_Store" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/README.md" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/README.md" new file mode 100755 index 0000000..8716d15 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/README.md" @@ -0,0 +1,35 @@ + +##README + +###实现功能、页面 +####没有登录的页面 +![Alt text](./屏幕快照 2018-05-27 下午1.42.52.png) + + +####登录页面 +点击登录 +![Alt text](./屏幕快照 2018-05-27 下午1.43.00.png) + + + +####查看课表 +![Alt text](./屏幕快照 2018-05-27 下午1.46.03.png) +点击上方button选择要看的周数弹出pickerView选择,然后刷新页面 +![Alt text](./屏幕快照 2018-05-27 下午1.46.12.png) +![Alt text](./屏幕快照 2018-05-27 下午1.46.26.png) + +####邮问页面 +![Alt text](./屏幕快照 2018-05-27 下午1.43.18.png) + +####邮问详情页面 +![Alt text](./屏幕快照 2018-05-27 下午4.21.37.png) + +####发现页面 +![Alt text](./屏幕快照 2018-05-27 下午1.43.25.png) + +####个人中心 +![Alt text](./屏幕快照 2018-05-27 下午1.43.32.png) + + +###缺点&未实现功能 +没有设置问题分类、点赞、评论数。邮问页面没有写用户提问的页面和上传过程。课表页面换星期数响应慢(尝试用多线程解决,开个线程解析每周的课表array,但是没有做出来),换多了会出bug(不响应了直接(╯°□°)╯︵┻━┻),感觉也是因为生成每周课表的数组,遍历过程太慢。。。 diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.42.52.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.42.52.png" new file mode 100755 index 0000000..f7b15b8 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.42.52.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.43.00.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.43.00.png" new file mode 100755 index 0000000..a10b894 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.43.00.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.43.18.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.43.18.png" new file mode 100755 index 0000000..afd4778 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.43.18.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.43.25.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.43.25.png" new file mode 100755 index 0000000..aa68855 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.43.25.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.43.32.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.43.32.png" new file mode 100755 index 0000000..999c266 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.43.32.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.46.03.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.46.03.png" new file mode 100755 index 0000000..2cdf0e9 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.46.03.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.46.12.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.46.12.png" new file mode 100755 index 0000000..3fba151 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.46.12.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.46.26.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.46.26.png" new file mode 100755 index 0000000..441a011 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2101.46.26.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2104.21.37.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2104.21.37.png" new file mode 100755 index 0000000..bbde187 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/README/\345\261\217\345\271\225\345\277\253\347\205\247 2018-05-27 \344\270\213\345\215\2104.21.37.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/project.pbxproj" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/project.pbxproj" new file mode 100644 index 0000000..89ca9a7 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/project.pbxproj" @@ -0,0 +1,646 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 2F9D66BF20B82A6D00B1297D /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F9D66BE20B82A6D00B1297D /* AppDelegate.m */; }; + 2F9D66C220B82A6D00B1297D /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F9D66C120B82A6D00B1297D /* ViewController.m */; }; + 2F9D66C520B82A6D00B1297D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2F9D66C320B82A6D00B1297D /* Main.storyboard */; }; + 2F9D66C720B82A6E00B1297D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2F9D66C620B82A6E00B1297D /* Assets.xcassets */; }; + 2F9D66CA20B82A6E00B1297D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2F9D66C820B82A6E00B1297D /* LaunchScreen.storyboard */; }; + 2F9D66CD20B82A6E00B1297D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F9D66CC20B82A6E00B1297D /* main.m */; }; + 2F9D66D720B82A6F00B1297D /* ____DemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F9D66D620B82A6F00B1297D /* ____DemoTests.m */; }; + 2F9D66E220B82A6F00B1297D /* ____DemoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F9D66E120B82A6F00B1297D /* ____DemoUITests.m */; }; + 2F9D66F120B8318A00B1297D /* SignInViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F9D66F020B8318A00B1297D /* SignInViewController.m */; }; + 2F9D66F320B83E7C00B1297D /* Messages.plist in Resources */ = {isa = PBXBuildFile; fileRef = 2F9D66F220B83E7C00B1297D /* Messages.plist */; }; + 2F9D66F620B83FE100B1297D /* MyMessageViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F9D66F520B83FE100B1297D /* MyMessageViewController.m */; }; + 2F9D66F920B857CD00B1297D /* MymessageTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F9D66F820B857CD00B1297D /* MymessageTableViewCell.m */; }; + 2F9D66FB20B85DA400B1297D /* MyMessage.plist in Resources */ = {isa = PBXBuildFile; fileRef = 2F9D66FA20B85DA400B1297D /* MyMessage.plist */; }; + 2F9D670120B866BA00B1297D /* discoverViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F9D670020B866BA00B1297D /* discoverViewController.m */; }; + 2F9D670420B8FE2600B1297D /* YouAskViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F9D670320B8FE2600B1297D /* YouAskViewController.m */; }; + 2F9D670720B8FFCF00B1297D /* YouAskTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F9D670620B8FFCF00B1297D /* YouAskTableViewCell.m */; }; + 2F9D670A20B9164400B1297D /* DetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F9D670920B9164400B1297D /* DetailViewController.m */; }; + 2F9D670F20B951A200B1297D /* Schedule.plist in Resources */ = {isa = PBXBuildFile; fileRef = 2F9D670E20B951A200B1297D /* Schedule.plist */; }; + 2F9D671120B9888200B1297D /* Questions.plist in Resources */ = {isa = PBXBuildFile; fileRef = 2F9D671020B9888200B1297D /* Questions.plist */; }; + 2F9D671720BA819A00B1297D /* DetailableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F9D671620BA819A00B1297D /* DetailableViewCell.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 2F9D66D320B82A6F00B1297D /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 2F9D66B220B82A6D00B1297D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 2F9D66B920B82A6D00B1297D; + remoteInfo = "掌上重邮Demo"; + }; + 2F9D66DE20B82A6F00B1297D /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 2F9D66B220B82A6D00B1297D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 2F9D66B920B82A6D00B1297D; + remoteInfo = "掌上重邮Demo"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 2F9D66BA20B82A6D00B1297D /* 掌上重邮Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "掌上重邮Demo.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 2F9D66BD20B82A6D00B1297D /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 2F9D66BE20B82A6D00B1297D /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 2F9D66C020B82A6D00B1297D /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 2F9D66C120B82A6D00B1297D /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 2F9D66C420B82A6D00B1297D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 2F9D66C620B82A6E00B1297D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 2F9D66C920B82A6E00B1297D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 2F9D66CB20B82A6E00B1297D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 2F9D66CC20B82A6E00B1297D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 2F9D66D220B82A6F00B1297D /* 掌上重邮DemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "掌上重邮DemoTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 2F9D66D620B82A6F00B1297D /* ____DemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "____DemoTests.m"; sourceTree = ""; }; + 2F9D66D820B82A6F00B1297D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 2F9D66DD20B82A6F00B1297D /* 掌上重邮DemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "掌上重邮DemoUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 2F9D66E120B82A6F00B1297D /* ____DemoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "____DemoUITests.m"; sourceTree = ""; }; + 2F9D66E320B82A6F00B1297D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 2F9D66EF20B8318A00B1297D /* SignInViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SignInViewController.h; sourceTree = ""; }; + 2F9D66F020B8318A00B1297D /* SignInViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SignInViewController.m; sourceTree = ""; }; + 2F9D66F220B83E7C00B1297D /* Messages.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Messages.plist; sourceTree = ""; }; + 2F9D66F420B83FE100B1297D /* MyMessageViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MyMessageViewController.h; sourceTree = ""; }; + 2F9D66F520B83FE100B1297D /* MyMessageViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MyMessageViewController.m; sourceTree = ""; }; + 2F9D66F720B857CD00B1297D /* MymessageTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MymessageTableViewCell.h; sourceTree = ""; }; + 2F9D66F820B857CD00B1297D /* MymessageTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MymessageTableViewCell.m; sourceTree = ""; }; + 2F9D66FA20B85DA400B1297D /* MyMessage.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = MyMessage.plist; sourceTree = ""; }; + 2F9D66FF20B866BA00B1297D /* discoverViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = discoverViewController.h; sourceTree = ""; }; + 2F9D670020B866BA00B1297D /* discoverViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = discoverViewController.m; sourceTree = ""; }; + 2F9D670220B8FE2600B1297D /* YouAskViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = YouAskViewController.h; sourceTree = ""; }; + 2F9D670320B8FE2600B1297D /* YouAskViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YouAskViewController.m; sourceTree = ""; }; + 2F9D670520B8FFCF00B1297D /* YouAskTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = YouAskTableViewCell.h; sourceTree = ""; }; + 2F9D670620B8FFCF00B1297D /* YouAskTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YouAskTableViewCell.m; sourceTree = ""; }; + 2F9D670820B9164400B1297D /* DetailViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DetailViewController.h; sourceTree = ""; }; + 2F9D670920B9164400B1297D /* DetailViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DetailViewController.m; sourceTree = ""; }; + 2F9D670E20B951A200B1297D /* Schedule.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Schedule.plist; sourceTree = ""; }; + 2F9D671020B9888200B1297D /* Questions.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Questions.plist; sourceTree = ""; }; + 2F9D671520BA819A00B1297D /* DetailableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DetailableViewCell.h; sourceTree = ""; }; + 2F9D671620BA819A00B1297D /* DetailableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DetailableViewCell.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 2F9D66B720B82A6D00B1297D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2F9D66CF20B82A6F00B1297D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2F9D66DA20B82A6F00B1297D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 2F9D66B120B82A6D00B1297D = { + isa = PBXGroup; + children = ( + 2F9D66BC20B82A6D00B1297D /* 掌上重邮Demo */, + 2F9D66D520B82A6F00B1297D /* 掌上重邮DemoTests */, + 2F9D66E020B82A6F00B1297D /* 掌上重邮DemoUITests */, + 2F9D66BB20B82A6D00B1297D /* Products */, + ); + sourceTree = ""; + }; + 2F9D66BB20B82A6D00B1297D /* Products */ = { + isa = PBXGroup; + children = ( + 2F9D66BA20B82A6D00B1297D /* 掌上重邮Demo.app */, + 2F9D66D220B82A6F00B1297D /* 掌上重邮DemoTests.xctest */, + 2F9D66DD20B82A6F00B1297D /* 掌上重邮DemoUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 2F9D66BC20B82A6D00B1297D /* 掌上重邮Demo */ = { + isa = PBXGroup; + children = ( + 2F9D66BD20B82A6D00B1297D /* AppDelegate.h */, + 2F9D66BE20B82A6D00B1297D /* AppDelegate.m */, + 2F9D66EF20B8318A00B1297D /* SignInViewController.h */, + 2F9D66F020B8318A00B1297D /* SignInViewController.m */, + 2F9D66C020B82A6D00B1297D /* ViewController.h */, + 2F9D66C120B82A6D00B1297D /* ViewController.m */, + 2F9D670220B8FE2600B1297D /* YouAskViewController.h */, + 2F9D670320B8FE2600B1297D /* YouAskViewController.m */, + 2F9D670520B8FFCF00B1297D /* YouAskTableViewCell.h */, + 2F9D670620B8FFCF00B1297D /* YouAskTableViewCell.m */, + 2F9D670820B9164400B1297D /* DetailViewController.h */, + 2F9D670920B9164400B1297D /* DetailViewController.m */, + 2F9D671520BA819A00B1297D /* DetailableViewCell.h */, + 2F9D671620BA819A00B1297D /* DetailableViewCell.m */, + 2F9D66F420B83FE100B1297D /* MyMessageViewController.h */, + 2F9D66F520B83FE100B1297D /* MyMessageViewController.m */, + 2F9D66F720B857CD00B1297D /* MymessageTableViewCell.h */, + 2F9D66F820B857CD00B1297D /* MymessageTableViewCell.m */, + 2F9D670E20B951A200B1297D /* Schedule.plist */, + 2F9D66FA20B85DA400B1297D /* MyMessage.plist */, + 2F9D671020B9888200B1297D /* Questions.plist */, + 2F9D66F220B83E7C00B1297D /* Messages.plist */, + 2F9D66FF20B866BA00B1297D /* discoverViewController.h */, + 2F9D670020B866BA00B1297D /* discoverViewController.m */, + 2F9D66C320B82A6D00B1297D /* Main.storyboard */, + 2F9D66C620B82A6E00B1297D /* Assets.xcassets */, + 2F9D66C820B82A6E00B1297D /* LaunchScreen.storyboard */, + 2F9D66CB20B82A6E00B1297D /* Info.plist */, + 2F9D66CC20B82A6E00B1297D /* main.m */, + ); + path = "掌上重邮Demo"; + sourceTree = ""; + }; + 2F9D66D520B82A6F00B1297D /* 掌上重邮DemoTests */ = { + isa = PBXGroup; + children = ( + 2F9D66D620B82A6F00B1297D /* ____DemoTests.m */, + 2F9D66D820B82A6F00B1297D /* Info.plist */, + ); + path = "掌上重邮DemoTests"; + sourceTree = ""; + }; + 2F9D66E020B82A6F00B1297D /* 掌上重邮DemoUITests */ = { + isa = PBXGroup; + children = ( + 2F9D66E120B82A6F00B1297D /* ____DemoUITests.m */, + 2F9D66E320B82A6F00B1297D /* Info.plist */, + ); + path = "掌上重邮DemoUITests"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 2F9D66B920B82A6D00B1297D /* 掌上重邮Demo */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2F9D66E620B82A6F00B1297D /* Build configuration list for PBXNativeTarget "掌上重邮Demo" */; + buildPhases = ( + 2F9D66B620B82A6D00B1297D /* Sources */, + 2F9D66B720B82A6D00B1297D /* Frameworks */, + 2F9D66B820B82A6D00B1297D /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "掌上重邮Demo"; + productName = "掌上重邮Demo"; + productReference = 2F9D66BA20B82A6D00B1297D /* 掌上重邮Demo.app */; + productType = "com.apple.product-type.application"; + }; + 2F9D66D120B82A6F00B1297D /* 掌上重邮DemoTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2F9D66E920B82A6F00B1297D /* Build configuration list for PBXNativeTarget "掌上重邮DemoTests" */; + buildPhases = ( + 2F9D66CE20B82A6F00B1297D /* Sources */, + 2F9D66CF20B82A6F00B1297D /* Frameworks */, + 2F9D66D020B82A6F00B1297D /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 2F9D66D420B82A6F00B1297D /* PBXTargetDependency */, + ); + name = "掌上重邮DemoTests"; + productName = "掌上重邮DemoTests"; + productReference = 2F9D66D220B82A6F00B1297D /* 掌上重邮DemoTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 2F9D66DC20B82A6F00B1297D /* 掌上重邮DemoUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2F9D66EC20B82A6F00B1297D /* Build configuration list for PBXNativeTarget "掌上重邮DemoUITests" */; + buildPhases = ( + 2F9D66D920B82A6F00B1297D /* Sources */, + 2F9D66DA20B82A6F00B1297D /* Frameworks */, + 2F9D66DB20B82A6F00B1297D /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 2F9D66DF20B82A6F00B1297D /* PBXTargetDependency */, + ); + name = "掌上重邮DemoUITests"; + productName = "掌上重邮DemoUITests"; + productReference = 2F9D66DD20B82A6F00B1297D /* 掌上重邮DemoUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 2F9D66B220B82A6D00B1297D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0930; + ORGANIZATIONNAME = "丁磊"; + TargetAttributes = { + 2F9D66B920B82A6D00B1297D = { + CreatedOnToolsVersion = 9.3.1; + }; + 2F9D66D120B82A6F00B1297D = { + CreatedOnToolsVersion = 9.3.1; + TestTargetID = 2F9D66B920B82A6D00B1297D; + }; + 2F9D66DC20B82A6F00B1297D = { + CreatedOnToolsVersion = 9.3.1; + TestTargetID = 2F9D66B920B82A6D00B1297D; + }; + }; + }; + buildConfigurationList = 2F9D66B520B82A6D00B1297D /* Build configuration list for PBXProject "掌上重邮Demo" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 2F9D66B120B82A6D00B1297D; + productRefGroup = 2F9D66BB20B82A6D00B1297D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 2F9D66B920B82A6D00B1297D /* 掌上重邮Demo */, + 2F9D66D120B82A6F00B1297D /* 掌上重邮DemoTests */, + 2F9D66DC20B82A6F00B1297D /* 掌上重邮DemoUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 2F9D66B820B82A6D00B1297D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2F9D66F320B83E7C00B1297D /* Messages.plist in Resources */, + 2F9D66CA20B82A6E00B1297D /* LaunchScreen.storyboard in Resources */, + 2F9D66C720B82A6E00B1297D /* Assets.xcassets in Resources */, + 2F9D671120B9888200B1297D /* Questions.plist in Resources */, + 2F9D66FB20B85DA400B1297D /* MyMessage.plist in Resources */, + 2F9D66C520B82A6D00B1297D /* Main.storyboard in Resources */, + 2F9D670F20B951A200B1297D /* Schedule.plist in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2F9D66D020B82A6F00B1297D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2F9D66DB20B82A6F00B1297D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 2F9D66B620B82A6D00B1297D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2F9D670720B8FFCF00B1297D /* YouAskTableViewCell.m in Sources */, + 2F9D66F120B8318A00B1297D /* SignInViewController.m in Sources */, + 2F9D66F620B83FE100B1297D /* MyMessageViewController.m in Sources */, + 2F9D66C220B82A6D00B1297D /* ViewController.m in Sources */, + 2F9D66CD20B82A6E00B1297D /* main.m in Sources */, + 2F9D670A20B9164400B1297D /* DetailViewController.m in Sources */, + 2F9D670420B8FE2600B1297D /* YouAskViewController.m in Sources */, + 2F9D670120B866BA00B1297D /* discoverViewController.m in Sources */, + 2F9D671720BA819A00B1297D /* DetailableViewCell.m in Sources */, + 2F9D66BF20B82A6D00B1297D /* AppDelegate.m in Sources */, + 2F9D66F920B857CD00B1297D /* MymessageTableViewCell.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2F9D66CE20B82A6F00B1297D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2F9D66D720B82A6F00B1297D /* ____DemoTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2F9D66D920B82A6F00B1297D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2F9D66E220B82A6F00B1297D /* ____DemoUITests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 2F9D66D420B82A6F00B1297D /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 2F9D66B920B82A6D00B1297D /* 掌上重邮Demo */; + targetProxy = 2F9D66D320B82A6F00B1297D /* PBXContainerItemProxy */; + }; + 2F9D66DF20B82A6F00B1297D /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 2F9D66B920B82A6D00B1297D /* 掌上重邮Demo */; + targetProxy = 2F9D66DE20B82A6F00B1297D /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 2F9D66C320B82A6D00B1297D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 2F9D66C420B82A6D00B1297D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 2F9D66C820B82A6E00B1297D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 2F9D66C920B82A6E00B1297D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 2F9D66E420B82A6F00B1297D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.3; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 2F9D66E520B82A6F00B1297D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.3; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 2F9D66E720B82A6F00B1297D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = JGMUD2VWJ4; + INFOPLIST_FILE = "掌上重邮Demo/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "dinglei.----Demo"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 2F9D66E820B82A6F00B1297D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = JGMUD2VWJ4; + INFOPLIST_FILE = "掌上重邮Demo/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "dinglei.----Demo"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 2F9D66EA20B82A6F00B1297D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = JGMUD2VWJ4; + INFOPLIST_FILE = "掌上重邮DemoTests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "dinglei.----DemoTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/掌上重邮Demo.app/掌上重邮Demo"; + }; + name = Debug; + }; + 2F9D66EB20B82A6F00B1297D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = JGMUD2VWJ4; + INFOPLIST_FILE = "掌上重邮DemoTests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "dinglei.----DemoTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/掌上重邮Demo.app/掌上重邮Demo"; + }; + name = Release; + }; + 2F9D66ED20B82A6F00B1297D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = JGMUD2VWJ4; + INFOPLIST_FILE = "掌上重邮DemoUITests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "dinglei.----DemoUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = "掌上重邮Demo"; + }; + name = Debug; + }; + 2F9D66EE20B82A6F00B1297D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = JGMUD2VWJ4; + INFOPLIST_FILE = "掌上重邮DemoUITests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "dinglei.----DemoUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = "掌上重邮Demo"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 2F9D66B520B82A6D00B1297D /* Build configuration list for PBXProject "掌上重邮Demo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2F9D66E420B82A6F00B1297D /* Debug */, + 2F9D66E520B82A6F00B1297D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2F9D66E620B82A6F00B1297D /* Build configuration list for PBXNativeTarget "掌上重邮Demo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2F9D66E720B82A6F00B1297D /* Debug */, + 2F9D66E820B82A6F00B1297D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2F9D66E920B82A6F00B1297D /* Build configuration list for PBXNativeTarget "掌上重邮DemoTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2F9D66EA20B82A6F00B1297D /* Debug */, + 2F9D66EB20B82A6F00B1297D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2F9D66EC20B82A6F00B1297D /* Build configuration list for PBXNativeTarget "掌上重邮DemoUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2F9D66ED20B82A6F00B1297D /* Debug */, + 2F9D66EE20B82A6F00B1297D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 2F9D66B220B82A6D00B1297D /* Project object */; +} diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata" new file mode 100644 index 0000000..0b8934e --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata" @@ -0,0 +1,7 @@ + + + + + diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist" new file mode 100644 index 0000000..18d9810 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist" @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/project.xcworkspace/xcuserdata/hikari.xcuserdatad/UserInterfaceState.xcuserstate" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/project.xcworkspace/xcuserdata/hikari.xcuserdatad/UserInterfaceState.xcuserstate" new file mode 100644 index 0000000..7077544 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/project.xcworkspace/xcuserdata/hikari.xcuserdatad/UserInterfaceState.xcuserstate" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/xcuserdata/hikari.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/xcuserdata/hikari.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist" new file mode 100644 index 0000000..fe2b454 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/xcuserdata/hikari.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist" @@ -0,0 +1,5 @@ + + + diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/xcuserdata/hikari.xcuserdatad/xcschemes/xcschememanagement.plist" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/xcuserdata/hikari.xcuserdatad/xcschemes/xcschememanagement.plist" new file mode 100644 index 0000000..bb2a121 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo.xcodeproj/xcuserdata/hikari.xcuserdatad/xcschemes/xcschememanagement.plist" @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + 掌上重邮Demo.xcscheme + + orderHint + 0 + + + + diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/.DS_Store" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/.DS_Store" new file mode 100644 index 0000000..bb86cea Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/.DS_Store" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/AppDelegate.h" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/AppDelegate.h" new file mode 100644 index 0000000..3791fd3 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/AppDelegate.h" @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/25. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/AppDelegate.m" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/AppDelegate.m" new file mode 100644 index 0000000..d5ee846 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/AppDelegate.m" @@ -0,0 +1,78 @@ +// +// AppDelegate.m +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/25. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import "AppDelegate.h" +#import "ViewController.h" +#import "YouAskViewController.h" +#import "MyMessageViewController.h" +#import "discoverViewController.h" + +@interface AppDelegate () + +@end + +@implementation AppDelegate + + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; + self.window.backgroundColor = [UIColor whiteColor]; + [self.window makeKeyAndVisible]; + + ViewController *firstCtrl = [[ViewController alloc] init]; + YouAskViewController *secondCtrl =[[YouAskViewController alloc] init]; + discoverViewController *trirdCtrl = [[discoverViewController alloc] init]; + MyMessageViewController *forthCtrl = [[MyMessageViewController alloc] init]; + + firstCtrl.title = @"课表"; + secondCtrl.title = @"邮问"; + trirdCtrl.title = @"发现"; + forthCtrl.title = @"我的"; + + + UINavigationController *navCtrl1 = [[UINavigationController alloc] initWithRootViewController:firstCtrl]; + UINavigationController *navCtrl2 = [[UINavigationController alloc] initWithRootViewController:secondCtrl]; + UINavigationController *navCtrl3 = [[UINavigationController alloc] initWithRootViewController:trirdCtrl]; + UINavigationController *navCtrl4 = [[UINavigationController alloc] initWithRootViewController:forthCtrl]; + + UITabBarController *tabbarCtrl = [[UITabBarController alloc] init]; + tabbarCtrl.viewControllers = @[navCtrl1, navCtrl2,navCtrl3,navCtrl4]; + + self.window.rootViewController = tabbarCtrl; + 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 invalidate graphics rendering callbacks. 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 active 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 diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/1.imageset/1.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/1.imageset/1.png" new file mode 100644 index 0000000..069df8d Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/1.imageset/1.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/1.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/1.imageset/Contents.json" new file mode 100644 index 0000000..4f00234 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/1.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "1.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/2.imageset/2.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/2.imageset/2.png" new file mode 100644 index 0000000..8bc8b59 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/2.imageset/2.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/2.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/2.imageset/Contents.json" new file mode 100644 index 0000000..e203b28 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/2.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "2.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/3.imageset/3.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/3.imageset/3.png" new file mode 100644 index 0000000..fb9e165 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/3.imageset/3.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/3.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/3.imageset/Contents.json" new file mode 100644 index 0000000..e455e3b --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/3.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "3.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/4.imageset/4.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/4.imageset/4.png" new file mode 100644 index 0000000..d351d77 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/4.imageset/4.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/4.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/4.imageset/Contents.json" new file mode 100644 index 0000000..3f98e82 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/4.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "4.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/5.imageset/5.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/5.imageset/5.png" new file mode 100644 index 0000000..9b148d9 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/5.imageset/5.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/5.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/5.imageset/Contents.json" new file mode 100644 index 0000000..689e0d0 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/5.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "5.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/6.imageset/6.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/6.imageset/6.png" new file mode 100644 index 0000000..e35464c Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/6.imageset/6.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/6.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/6.imageset/Contents.json" new file mode 100644 index 0000000..155d54e --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/6.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "6.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/7.imageset/7.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/7.imageset/7.png" new file mode 100644 index 0000000..3564fb4 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/7.imageset/7.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/7.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/7.imageset/Contents.json" new file mode 100644 index 0000000..39acede --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/7.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "7.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/8.imageset/8.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/8.imageset/8.png" new file mode 100644 index 0000000..10b7898 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/8.imageset/8.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/8.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/8.imageset/Contents.json" new file mode 100644 index 0000000..173608f --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/8.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "8.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/9.imageset/9.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/9.imageset/9.png" new file mode 100644 index 0000000..48d82b4 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/9.imageset/9.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/9.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/9.imageset/Contents.json" new file mode 100644 index 0000000..0ab42e6 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/9.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "9.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/AppIcon.appiconset/Contents.json" new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/AppIcon.appiconset/Contents.json" @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/Contents.json" new file mode 100644 index 0000000..da4a164 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/Contents.json" @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_empty_course.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_empty_course.imageset/Contents.json" new file mode 100644 index 0000000..5d54303 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_empty_course.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "bg_empty_course.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_empty_course.imageset/bg_empty_course.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_empty_course.imageset/bg_empty_course.png" new file mode 100644 index 0000000..80dd340 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_empty_course.imageset/bg_empty_course.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_me_item_full.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_me_item_full.imageset/Contents.json" new file mode 100644 index 0000000..68875fb --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_me_item_full.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "bg_me_item_full.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_me_item_full.imageset/bg_me_item_full.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_me_item_full.imageset/bg_me_item_full.png" new file mode 100644 index 0000000..e556515 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_me_item_full.imageset/bg_me_item_full.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_me_top.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_me_top.imageset/Contents.json" new file mode 100644 index 0000000..f98385e --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_me_top.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "bg_me_top.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_me_top.imageset/bg_me_top.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_me_top.imageset/bg_me_top.png" new file mode 100644 index 0000000..54add95 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/bg_me_top.imageset/bg_me_top.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/default_avatar-1.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/default_avatar-1.imageset/Contents.json" new file mode 100644 index 0000000..d72bcfc --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/default_avatar-1.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "default_avatar.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/default_avatar-1.imageset/default_avatar.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/default_avatar-1.imageset/default_avatar.png" new file mode 100644 index 0000000..d61b7d8 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/default_avatar-1.imageset/default_avatar.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/default_avatar.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/default_avatar.imageset/Contents.json" new file mode 100644 index 0000000..d72bcfc --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/default_avatar.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "default_avatar.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/default_avatar.imageset/default_avatar.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/default_avatar.imageset/default_avatar.png" new file mode 100644 index 0000000..d61b7d8 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/default_avatar.imageset/default_avatar.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/desktop.dataset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/desktop.dataset/Contents.json" new file mode 100644 index 0000000..1dd9af6 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/desktop.dataset/Contents.json" @@ -0,0 +1,12 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "data" : [ + { + "idiom" : "universal", + "filename" : "desktop.ini" + } + ] +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/desktop.dataset/desktop.ini" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/desktop.dataset/desktop.ini" new file mode 100644 index 0000000..06ed5c0 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/desktop.dataset/desktop.ini" @@ -0,0 +1,13 @@ +[LocalizedFileNames] +bg_me_item_full.png=@bg_me_item_full.png,0 +bg_me_top.png=@bg_me_top.png,0 +ic_me_arrow.png=@ic_me_arrow.png,0 +ic_me_draft.png=@ic_me_draft.png,0 +ic_me_edit.png=@ic_me_edit.png,0 +ic_me_help.png=@ic_me_help.png,0 +ic_me_question.png=@ic_me_question.png,0 +ic_me_relate_me.png=@ic_me_relate_me.png,0 +ic_me_remind_icon.png=@ic_me_remind_icon.png,0 +ic_me_setting.png=@ic_me_setting.png,0 +ic_me_sign.png=@ic_me_sign.png,0 +ic_me_store.png=@ic_me_store.png,0 diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_arrow.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_arrow.imageset/Contents.json" new file mode 100644 index 0000000..49b2841 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_arrow.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "ic_me_arrow.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_arrow.imageset/ic_me_arrow.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_arrow.imageset/ic_me_arrow.png" new file mode 100644 index 0000000..d95bba8 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_arrow.imageset/ic_me_arrow.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_draft.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_draft.imageset/Contents.json" new file mode 100644 index 0000000..fe3a92c --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_draft.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "ic_me_draft.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_draft.imageset/ic_me_draft.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_draft.imageset/ic_me_draft.png" new file mode 100644 index 0000000..a343305 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_draft.imageset/ic_me_draft.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_edit.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_edit.imageset/Contents.json" new file mode 100644 index 0000000..81425c4 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_edit.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "ic_me_edit.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_edit.imageset/ic_me_edit.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_edit.imageset/ic_me_edit.png" new file mode 100644 index 0000000..633fa39 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_edit.imageset/ic_me_edit.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_help.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_help.imageset/Contents.json" new file mode 100644 index 0000000..0f04b6b --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_help.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "ic_me_help.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_help.imageset/ic_me_help.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_help.imageset/ic_me_help.png" new file mode 100644 index 0000000..a7cf77f Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_help.imageset/ic_me_help.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_question.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_question.imageset/Contents.json" new file mode 100644 index 0000000..d639847 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_question.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "ic_me_question.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_question.imageset/ic_me_question.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_question.imageset/ic_me_question.png" new file mode 100644 index 0000000..a63a41e Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_question.imageset/ic_me_question.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_relate_me.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_relate_me.imageset/Contents.json" new file mode 100644 index 0000000..25d69dc --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_relate_me.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "ic_me_relate_me.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_relate_me.imageset/ic_me_relate_me.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_relate_me.imageset/ic_me_relate_me.png" new file mode 100644 index 0000000..90d1cbb Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_relate_me.imageset/ic_me_relate_me.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_remind_icon.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_remind_icon.imageset/Contents.json" new file mode 100644 index 0000000..124c3d8 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_remind_icon.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "ic_me_remind_icon.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_remind_icon.imageset/ic_me_remind_icon.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_remind_icon.imageset/ic_me_remind_icon.png" new file mode 100644 index 0000000..7d29f80 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_remind_icon.imageset/ic_me_remind_icon.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_setting.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_setting.imageset/Contents.json" new file mode 100644 index 0000000..6b06d8b --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_setting.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "ic_me_setting.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_setting.imageset/ic_me_setting.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_setting.imageset/ic_me_setting.png" new file mode 100644 index 0000000..faa663b Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_setting.imageset/ic_me_setting.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_sign.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_sign.imageset/Contents.json" new file mode 100644 index 0000000..e9759a5 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_sign.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "ic_me_sign.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_sign.imageset/ic_me_sign.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_sign.imageset/ic_me_sign.png" new file mode 100644 index 0000000..818fece Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_sign.imageset/ic_me_sign.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_store.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_store.imageset/Contents.json" new file mode 100644 index 0000000..e1c3d4e --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_store.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "ic_me_store.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_store.imageset/ic_me_store.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_store.imageset/ic_me_store.png" new file mode 100644 index 0000000..c1429f0 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/ic_me_store.imageset/ic_me_store.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/logo.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/logo.imageset/Contents.json" new file mode 100644 index 0000000..8463aca --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/logo.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "logo.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/logo.imageset/logo.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/logo.imageset/logo.png" new file mode 100644 index 0000000..c28b80e Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/logo.imageset/logo.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/no_course.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/no_course.imageset/Contents.json" new file mode 100644 index 0000000..45e4aec --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/no_course.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "no_course.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/no_course.imageset/no_course.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/no_course.imageset/no_course.png" new file mode 100644 index 0000000..7747980 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/no_course.imageset/no_course.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/splash.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/splash.imageset/Contents.json" new file mode 100644 index 0000000..ee54183 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/splash.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "splash.jpg", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/splash.imageset/splash.jpg" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/splash.imageset/splash.jpg" new file mode 100644 index 0000000..b874eee Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/splash.imageset/splash.jpg" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\217\221\347\216\260.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\217\221\347\216\260.imageset/Contents.json" new file mode 100644 index 0000000..ae7d46c --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\217\221\347\216\260.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "发现.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\217\221\347\216\260.imageset/\345\217\221\347\216\260.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\217\221\347\216\260.imageset/\345\217\221\347\216\260.png" new file mode 100644 index 0000000..9766974 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\217\221\347\216\260.imageset/\345\217\221\347\216\260.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\217\221\347\216\260\345\233\276\346\240\207.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\217\221\347\216\260\345\233\276\346\240\207.imageset/Contents.json" new file mode 100644 index 0000000..c5e142b --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\217\221\347\216\260\345\233\276\346\240\207.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "发现图标.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\217\221\347\216\260\345\233\276\346\240\207.imageset/\345\217\221\347\216\260\345\233\276\346\240\207.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\217\221\347\216\260\345\233\276\346\240\207.imageset/\345\217\221\347\216\260\345\233\276\346\240\207.png" new file mode 100644 index 0000000..ea3c2e1 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\217\221\347\216\260\345\233\276\346\240\207.imageset/\345\217\221\347\216\260\345\233\276\346\240\207.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\233\276\345\261\202 17.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\233\276\345\261\202 17.imageset/Contents.json" new file mode 100644 index 0000000..2908b0c --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\233\276\345\261\202 17.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "图层 17.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\233\276\345\261\202 17.imageset/\345\233\276\345\261\202 17.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\233\276\345\261\202 17.imageset/\345\233\276\345\261\202 17.png" new file mode 100644 index 0000000..32e6c73 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\345\233\276\345\261\202 17.imageset/\345\233\276\345\261\202 17.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\210\221\347\232\204.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\210\221\347\232\204.imageset/Contents.json" new file mode 100644 index 0000000..80df570 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\210\221\347\232\204.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "我的.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\210\221\347\232\204.imageset/\346\210\221\347\232\204.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\210\221\347\232\204.imageset/\346\210\221\347\232\204.png" new file mode 100644 index 0000000..2d8c4be Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\210\221\347\232\204.imageset/\346\210\221\347\232\204.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\210\221\347\232\204\345\233\276\346\240\207.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\210\221\347\232\204\345\233\276\346\240\207.imageset/Contents.json" new file mode 100644 index 0000000..f813d9f --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\210\221\347\232\204\345\233\276\346\240\207.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "我的图标.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\210\221\347\232\204\345\233\276\346\240\207.imageset/\346\210\221\347\232\204\345\233\276\346\240\207.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\210\221\347\232\204\345\233\276\346\240\207.imageset/\346\210\221\347\232\204\345\233\276\346\240\207.png" new file mode 100644 index 0000000..fc7cf40 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\210\221\347\232\204\345\233\276\346\240\207.imageset/\346\210\221\347\232\204\345\233\276\346\240\207.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\220\234\347\264\242\346\214\211\351\222\256.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\220\234\347\264\242\346\214\211\351\222\256.imageset/Contents.json" new file mode 100644 index 0000000..094ecb6 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\220\234\347\264\242\346\214\211\351\222\256.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "搜索按钮.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\220\234\347\264\242\346\214\211\351\222\256.imageset/\346\220\234\347\264\242\346\214\211\351\222\256.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\220\234\347\264\242\346\214\211\351\222\256.imageset/\346\220\234\347\264\242\346\214\211\351\222\256.png" new file mode 100644 index 0000000..7714839 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\346\220\234\347\264\242\346\214\211\351\222\256.imageset/\346\220\234\347\264\242\346\214\211\351\222\256.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\347\237\251\345\275\242 46.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\347\237\251\345\275\242 46.imageset/Contents.json" new file mode 100644 index 0000000..dd5f6b2 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\347\237\251\345\275\242 46.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "矩形 46.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\347\237\251\345\275\242 46.imageset/\347\237\251\345\275\242 46.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\347\237\251\345\275\242 46.imageset/\347\237\251\345\275\242 46.png" new file mode 100644 index 0000000..67fea13 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\347\237\251\345\275\242 46.imageset/\347\237\251\345\275\242 46.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\350\257\276\350\241\250\345\233\276\346\240\207.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\350\257\276\350\241\250\345\233\276\346\240\207.imageset/Contents.json" new file mode 100644 index 0000000..39ed3b5 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\350\257\276\350\241\250\345\233\276\346\240\207.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "课表图标.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\350\257\276\350\241\250\345\233\276\346\240\207.imageset/\350\257\276\350\241\250\345\233\276\346\240\207.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\350\257\276\350\241\250\345\233\276\346\240\207.imageset/\350\257\276\350\241\250\345\233\276\346\240\207.png" new file mode 100644 index 0000000..7af7595 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\350\257\276\350\241\250\345\233\276\346\240\207.imageset/\350\257\276\350\241\250\345\233\276\346\240\207.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\351\202\256\351\227\256\345\233\276\346\240\207.imageset/Contents.json" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\351\202\256\351\227\256\345\233\276\346\240\207.imageset/Contents.json" new file mode 100644 index 0000000..a6ab54b --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\351\202\256\351\227\256\345\233\276\346\240\207.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "邮问图标.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\351\202\256\351\227\256\345\233\276\346\240\207.imageset/\351\202\256\351\227\256\345\233\276\346\240\207.png" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\351\202\256\351\227\256\345\233\276\346\240\207.imageset/\351\202\256\351\227\256\345\233\276\346\240\207.png" new file mode 100644 index 0000000..517ba61 Binary files /dev/null and "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Assets.xcassets/\351\202\256\351\227\256\345\233\276\346\240\207.imageset/\351\202\256\351\227\256\345\233\276\346\240\207.png" differ diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Base.lproj/LaunchScreen.storyboard" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Base.lproj/LaunchScreen.storyboard" new file mode 100644 index 0000000..fcdb420 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Base.lproj/LaunchScreen.storyboard" @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Base.lproj/Main.storyboard" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Base.lproj/Main.storyboard" new file mode 100644 index 0000000..d7c78a1 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Base.lproj/Main.storyboard" @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/DetailViewController.h" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/DetailViewController.h" new file mode 100644 index 0000000..7a0e573 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/DetailViewController.h" @@ -0,0 +1,15 @@ +// +// DetailViewController.h +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/26. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import + +@interface DetailViewController : UIViewController + +@property (nonatomic, strong) NSNumber *ID; + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/DetailViewController.m" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/DetailViewController.m" new file mode 100644 index 0000000..c9f675b --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/DetailViewController.m" @@ -0,0 +1,114 @@ +// +// DetailViewController.m +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/26. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import "DetailViewController.h" +#import "DetailableViewCell.h" + +@interface DetailViewController () +@property (nonatomic, strong) UITableView *tableView; +@property (nonatomic, strong) NSMutableDictionary *dataDic; +@property (nonatomic, strong) NSMutableArray *answers; + +@end + +@implementation DetailViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + [self loadData]; + + + + self.tableView = [[UITableView alloc]initWithFrame:self.view.frame style:UITableViewStyleGrouped]; + self.tableView.delegate = self; + self.tableView.dataSource = self; + +// self.tableView.estimatedRowHeight = 150; +// self.tableView.rowHeight = 200; + [self.view addSubview:self.tableView]; + // Do any additional setup after loading the view. +} + +- (void)loadData{ + NSBundle *bundle = [NSBundle mainBundle]; + NSString *filePath = [bundle pathForResource:@"Messages" ofType:@"plist"]; + + + NSMutableDictionary *dic3 = [[NSMutableDictionary alloc]initWithContentsOfFile: filePath]; + NSMutableDictionary *dic4 = [dic3 valueForKey:@"data"]; + NSString *stuNum = [dic4 valueForKey:@"stuNum"]; + NSString *idNum = [dic4 valueForKey:@"idNum"]; + + + NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://wx.idsbllp.cn/springtest/cyxbsMobile/index.php/QA/Question/getDetailedInfo"]]; + + [request setHTTPMethod:@"POST"]; + [request setCachePolicy:NSURLRequestReloadIgnoringCacheData]; + [request setTimeoutInterval:20]; + NSString *str = [NSString stringWithFormat:@"stuNum=%@&idNum=%@&question_id=%@",stuNum,idNum,self.ID]; + [request setHTTPBody:[str dataUsingEncoding:NSUTF8StringEncoding]]; + NSError *error = nil; + NSHTTPURLResponse *urlResponse = nil; + NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&urlResponse error:&error]; + NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:responseData options:kNilOptions error:nil]; + self.dataDic = [dict valueForKey:@"data"]; + self.answers = [self.dataDic valueForKey:@"answers"]; + +} + + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ + return 2; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ + if (section == 1 && _answers != nil && ![_answers isKindOfClass:[NSNull class]] && _answers.count != 0) { + return _answers.count; + } + return 1; +} + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ + DetailableViewCell *cell = [DetailableViewCell cellWithTableView:tableView]; + if (indexPath.section == 0) { + cell.label2.text = [_dataDic valueForKey:@"title"]; + cell.label3.text = [_dataDic valueForKey:@"description"]; + cell.label1.text = [_dataDic valueForKey:@"questioner_nickname"]; + [cell.btn1 setBackgroundImage:[UIImage imageNamed:@"default_avatar"] forState:UIControlStateNormal]; + } + else{ + cell.label2.text = @" "; + NSDictionary *dic = [_answers objectAtIndex:indexPath.row]; + cell.label3.text = [dic valueForKey:@"content"]; + cell.label3.frame = CGRectMake(20, 75, [UIScreen mainScreen].bounds.size.width-40, 20); + cell.label1.text = [dic valueForKey:@"nickname"]; + [cell.btn1 setBackgroundImage:[UIImage imageNamed:@"default_avatar"] forState:UIControlStateNormal]; + } + return cell; +} + + + +- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ + + if (indexPath.section == 0) { + return 150; + } + else + return 100; +} + + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/DetailableViewCell.h" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/DetailableViewCell.h" new file mode 100644 index 0000000..bef55c9 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/DetailableViewCell.h" @@ -0,0 +1,25 @@ +// +// DetailableViewCell.h +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/27. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import + +@interface DetailableViewCell : UITableViewCell + + +@property (nonatomic, strong) UIButton *btn1; +@property (nonatomic, strong) UILabel *label1; +@property (nonatomic, strong) UILabel *label2; +@property (nonatomic, strong) UILabel *label3; +@property (nonatomic, strong) NSString *str1; +@property (nonatomic, strong) NSString *str2; + +@property (nonatomic, weak) UIView *separatorView; + + ++ (instancetype)cellWithTableView:(UITableView *)tableView; +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/DetailableViewCell.m" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/DetailableViewCell.m" new file mode 100644 index 0000000..806a917 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/DetailableViewCell.m" @@ -0,0 +1,99 @@ +// +// DetailableViewCell.m +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/27. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import "DetailableViewCell.h" + +@implementation DetailableViewCell + +#pragma - / ******重写initwithstyle方法******* / +-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier +{ + if (self = [super initWithStyle:style reuseIdentifier: reuseIdentifier]) + { + CGFloat width = [UIScreen mainScreen].bounds.size.width; + + UIButton *btn1 = [[UIButton alloc]init]; + btn1.frame = CGRectMake(25, 20, 40, 40); + btn1.layer.cornerRadius = 2.0; + [btn1 setUserInteractionEnabled: NO]; + [self.contentView addSubview:btn1]; + self.btn1 = btn1; + UILabel *label1 = [[UILabel alloc]init]; + label1.frame = CGRectMake(70, 30, 100, 15); + label1.textColor = [UIColor blackColor]; + [self.contentView addSubview: label1]; + self.label1 = label1; + UILabel *label2 = [[UILabel alloc]initWithFrame:CGRectMake(20, 75, width-40, 20)]; + label2.textColor = [UIColor blackColor]; + label2.font = [UIFont systemFontOfSize:20]; + label2.numberOfLines = 0; +// CGSize size1 = [_str1 sizeWithFont:label2.font constrainedToSize:CGSizeMake(label2.frame.size.width, MAXFLOAT) lineBreakMode:NSLineBreakByWordWrapping]; +// label2.text = _str1; +// label2.frame = CGRectMake(20, 75, width-40, size1.height); + [self.contentView addSubview:label2]; + self.label2 = label2; + UILabel *label3 = [[UILabel alloc]initWithFrame:CGRectMake(20, 100, width-140, 10)]; + label3.numberOfLines = 0; + label3.textColor = [UIColor darkGrayColor]; +// CGSize size2 = [_str2 sizeWithFont:label3.font constrainedToSize:CGSizeMake(label3.frame.size.width, MAXFLOAT) lineBreakMode:NSLineBreakByWordWrapping]; + +// [label3 setText:_str2]; +// label3.frame = CGRectMake(20, 90+size1.height, width-40, size2.height); + [self.contentView addSubview:label3]; + self.label3 = label3; + + + } + self.backgroundColor = [UIColor whiteColor]; + return self; +} + + ++ (instancetype)cellWithTableView:(UITableView *)tableView +{ + static NSString *Identifier = @"status"; + DetailableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:Identifier]; + if (cell == nil) { + cell = [[DetailableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:Identifier]; + } + return (DetailableViewCell *)cell; +} + +#pragma - / **********设置分割线********* / +-(UIView *)separatorView +{ + if (_separatorView == nil) { + UIView *separatorView = [[UIView alloc]init]; + self.separatorView = separatorView; + separatorView.backgroundColor = [UIColor clearColor]; + [self addSubview:separatorView]; + } + return _separatorView; +} + + +-(void)layoutSubviews +{ + [super layoutSubviews]; + self.separatorView.frame = CGRectMake(0, self.bounds.size.height-1, self.bounds.size.width, 1); +} + + + +- (void)awakeFromNib { + [super awakeFromNib]; + // Initialization code +} + +- (void)setSelected:(BOOL)selected animated:(BOOL)animated { + [super setSelected:selected animated:animated]; + + // Configure the view for the selected state +} + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Info.plist" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Info.plist" new file mode 100644 index 0000000..16be3b6 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Info.plist" @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Messages.plist" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Messages.plist" new file mode 100644 index 0000000..edad05f --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Messages.plist" @@ -0,0 +1,31 @@ + + + + + data + + class + 01141707班 + classNum + 01141707 + college + 通信与信息工程学院 + gender + + grade + 2017 + idNum + 010685 + major + 0114 + name + 丁磊 + stuNum + 2017210338 + + info + success + status + 200 + + diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/MyMessage.plist" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/MyMessage.plist" new file mode 100644 index 0000000..ca5bf98 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/MyMessage.plist" @@ -0,0 +1,56 @@ + + + + + + + image + ic_me_sign + title + 每日签到 + + + + + image + ic_me_store + title + 积分商城 + + + image + ic_me_help + title + 问一问 + + + image + ic_me_question + title + 帮一帮 + + + image + ic_me_draft + title + 草稿箱 + + + + + image + ic_me_relate_me + title + 与我相关 + + + + + image + ic_me_setting + title + 设置 + + + + diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/MyMessageViewController.h" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/MyMessageViewController.h" new file mode 100644 index 0000000..a32b9c3 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/MyMessageViewController.h" @@ -0,0 +1,13 @@ +// +// MyMessageViewController.h +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/25. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import + +@interface MyMessageViewController : UIViewController + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/MyMessageViewController.m" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/MyMessageViewController.m" new file mode 100644 index 0000000..c4dd3fb --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/MyMessageViewController.m" @@ -0,0 +1,91 @@ +// +// MyMessageViewController.m +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/25. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import "MyMessageViewController.h" +#import "MymessageTableViewCell.h" + +@interface MyMessageViewController () +@property (nonatomic, strong) UITableView *tableView; +@property (nonatomic, strong) UIView *HeaderView; +@property (nonatomic, strong) UIButton *iconButton; +@property (nonatomic, strong) NSMutableArray *dataArray; + +@end + +@implementation MyMessageViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + [self loadData]; + + CGFloat Width = [UIScreen mainScreen].bounds.size.width; + CGFloat Height = [UIScreen mainScreen].bounds.size.height; + self.HeaderView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, Width, Height/2-70)]; + self.HeaderView.backgroundColor = [UIColor colorWithRed:0.557 green:0.835 blue:0.984 alpha:1.0]; + self.iconButton = [[UIButton alloc]initWithFrame:CGRectMake(Width/2-35, 140, 70, 70)]; + self.iconButton.layer.cornerRadius = 2.0; + [self.iconButton setImage:[UIImage imageNamed:@"default_avatar"] forState:UIControlStateNormal]; + [self.iconButton addTarget:self action:@selector(didClickButton:) forControlEvents:UIControlEventTouchUpInside]; + [self.HeaderView addSubview:self.iconButton]; + [self.view addSubview:self.HeaderView]; + + + self.tableView = [[UITableView alloc]initWithFrame:CGRectMake(0, Height/2-70, Width, Height/2+70) style:UITableViewStyleGrouped]; + self.tableView.delegate = self; + self.tableView.dataSource = self; + self.tableView.rowHeight = 70; + [self.view addSubview:self.tableView]; + // Do any additional setup after loading the view. +} + +- (void)loadData{ + NSBundle *bundle = [NSBundle mainBundle]; + NSString *filePath = [bundle pathForResource:@"MyMessage" ofType:@"plist"]; + + self.dataArray = [[NSMutableArray alloc]initWithContentsOfFile:filePath]; +} + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ + return self.dataArray.count; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ + NSArray *arr = [self.dataArray objectAtIndex:section]; + return arr.count; +} + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ + MymessageTableViewCell *cell = [MymessageTableViewCell cellWithTableView:tableView]; + cell.backgroundColor = [UIColor clearColor]; + NSArray *arr1 = [self.dataArray objectAtIndex: indexPath.section]; + NSDictionary *dic = [arr1 objectAtIndex: indexPath.row]; + NSString *str1 = [dic valueForKey:@"title"]; + NSString *str2 = [dic valueForKey:@"image"]; + cell.label1.text = str1; + [cell.button setImage:[UIImage imageNamed:str2] forState:UIControlStateNormal]; + return cell; +} + + + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +/* +#pragma mark - Navigation + +// In a storyboard-based application, you will often want to do a little preparation before navigation +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { + // Get the new view controller using [segue destinationViewController]. + // Pass the selected object to the new view controller. +} +*/ + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/MymessageTableViewCell.h" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/MymessageTableViewCell.h" new file mode 100644 index 0000000..3d41386 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/MymessageTableViewCell.h" @@ -0,0 +1,21 @@ +// +// MymessageTableViewCell.h +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/25. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import + +@interface MymessageTableViewCell : UITableViewCell + + +@property (nonatomic, strong) UILabel *label1; +@property (nonatomic, strong) UIButton *button2; +@property (nonatomic, strong) UIButton *button; + + ++ (instancetype)cellWithTableView:(UITableView *)tableView; + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/MymessageTableViewCell.m" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/MymessageTableViewCell.m" new file mode 100644 index 0000000..de74db3 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/MymessageTableViewCell.m" @@ -0,0 +1,68 @@ +// +// MymessageTableViewCell.m +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/25. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import "MymessageTableViewCell.h" + +@implementation MymessageTableViewCell + +#pragma - / ******重写initwithstyle方法******* / +-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier +{ + if (self = [super initWithStyle:style reuseIdentifier: reuseIdentifier]) + { + CGFloat width = [UIScreen mainScreen].bounds.size.width; + UIButton *button3 = [[UIButton alloc]initWithFrame:CGRectMake(10, 0, width-20, 80)]; + [button3 setImage:[UIImage imageNamed:@"bg_me_item_full"] forState:UIControlStateNormal]; + self.backgroundColor = [UIColor clearColor]; + [self.contentView addSubview:button3]; + + UIButton *button = [[UIButton alloc]init]; + button.frame = CGRectMake(30, 10, 50, 50); + [self.contentView addSubview:button]; + self.button = button; + UILabel *label1 = [[UILabel alloc]init]; + label1.frame = CGRectMake(90, 15, 200, 50); + label1.textColor = [UIColor blackColor]; + [self.contentView addSubview: label1]; + self.label1 = label1; + UIButton *button2 = [[UIButton alloc] initWithFrame:CGRectMake(width-60, 20, 30, 30)]; + [button2 setImage:[UIImage imageNamed:@"ic_me_arrow"] forState:UIControlStateNormal]; + [self.contentView addSubview:button2]; + self.button2 = button2; + } + self.backgroundColor = [UIColor clearColor]; + + return self; +} + ++ (instancetype)cellWithTableView:(UITableView *)tableView +{ + static NSString *Identifier = @"status"; + MymessageTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:Identifier]; + if (cell == nil) { + cell = [[MymessageTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:Identifier]; + } + return (MymessageTableViewCell *)cell; +} + + + + + +- (void)awakeFromNib { + [super awakeFromNib]; + // Initialization code +} + +- (void)setSelected:(BOOL)selected animated:(BOOL)animated { + [super setSelected:selected animated:animated]; + + // Configure the view for the selected state +} + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Questions.plist" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Questions.plist" new file mode 100644 index 0000000..a68eda9 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Questions.plist" @@ -0,0 +1,125 @@ + + + + + data + + + answer_num + 0 + created_at + 2018-05-26 20:01:00 + description + 为什么萱姐姐可以这么强 + disappear_at + 2018-06-03 01:11:20 + gender + + id + 84 + is_anonymous + 0 + kind + 学习 + nickname + 悟空 + photo_thumbnail_src + http://wx.idsbllp.cn/cyxbsMobile/Public/photo/thumbnail/1505106170_477028143.jpg + reward + 1 + tags + PHP + title + 萱姐姐为什么这么强 + + + answer_num + 1 + created_at + 2018-05-27 09:48:08 + description + 啊啊啊啊啊 + disappear_at + 2018-08-01 01:11:20 + gender + + id + 103 + is_anonymous + 0 + kind + 学习 + nickname + 冯哈哈哈 + photo_thumbnail_src + http://wx.idsbllp.cn/cyxbsMobile/Public/photo/thumbnail/1510899662_339649785.png + reward + 1 + tags + PHP + title + 这个代码太难写了 + + + answer_num + 1 + created_at + 2018-05-27 09:48:11 + description + 啊啊啊啊啊 + disappear_at + 2018-08-01 01:11:20 + gender + + id + 104 + is_anonymous + 0 + kind + 学习 + nickname + 冯哈哈哈 + photo_thumbnail_src + http://wx.idsbllp.cn/cyxbsMobile/Public/photo/thumbnail/1510899662_339649785.png + reward + 1 + tags + PHP + title + 这个代码太难写了 + + + answer_num + 1 + created_at + 2018-05-27 10:47:17 + description + 试一试 + disappear_at + 2018-05-28 01:11:20 + gender + + id + 105 + is_anonymous + 0 + kind + 学习 + nickname + 冯哈哈哈 + photo_thumbnail_src + http://wx.idsbllp.cn/cyxbsMobile/Public/photo/thumbnail/1510899662_339649785.png + reward + 0 + tags + JAVA + title + #JAVA# 发一个 + + + info + success + status + 200 + + diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Schedule.plist" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Schedule.plist" new file mode 100644 index 0000000..3bf54d4 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/Schedule.plist" @@ -0,0 +1,1026 @@ + + + + + cachedTimestamp + 1527401520465 + data + + + begin_lesson + 3 + classroom + 4301 + course + 大学英语3 + course_num + A1050050 + day + 星期一 + hash_day + 0 + hash_lesson + 1 + lesson + 三四节 + period + 2 + rawWeek + 1-16周 + teacher + 毕丽君(外聘) + type + 必修 + week + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + + weekBegin + 1 + weekEnd + 16 + weekModel + all + + + begin_lesson + 5 + classroom + 3501 + course + 高等数学A(下) + course_num + A1110020 + day + 星期一 + hash_day + 0 + hash_lesson + 2 + lesson + 五六节 + period + 2 + rawWeek + 1-15周 + teacher + 李玲 + type + 必修 + week + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + + weekBegin + 1 + weekEnd + 15 + weekModel + all + + + begin_lesson + 9 + classroom + 3103 + course + 伟大的《红楼梦》 + course_num + Mooc41 + day + 星期一 + hash_day + 0 + hash_lesson + 4 + lesson + 九十节 + period + 2 + rawWeek + 3周,8周,15周 + teacher + 祖秋阳 + type + 选修 + week + + 3 + 8 + 15 + + weekBegin + 3 + weekEnd + 15 + weekModel + all + + + begin_lesson + 1 + classroom + 物理虚拟仿真实验室(综合实验楼C314/C315/C316) + course + 大学物理实验A(上) + course_num + A2110670 + day + 星期二 + hash_day + 1 + hash_lesson + 0 + lesson + 一二节 + period + 2 + rawWeek + 15-17周单周 + teacher + 相国涛 + type + 必修 + week + + 15 + 17 + + weekBegin + 15 + weekEnd + 17 + weekModel + single + + + begin_lesson + 1 + classroom + 物理实验室(二)(综合实验楼C203/C204) + course + 大学物理实验A(上) + course_num + A2110670 + day + 星期二 + hash_day + 1 + hash_lesson + 0 + lesson + 一二节 + period + 2 + rawWeek + 11周 + teacher + 相国涛 + type + 必修 + week + + 11 + + weekBegin + 11 + weekEnd + 11 + weekModel + all + + + begin_lesson + 1 + classroom + 电学设计性实验室(综合实验楼C310/C311) + course + 大学物理实验A(上) + course_num + A2110670 + day + 星期二 + hash_day + 1 + hash_lesson + 0 + lesson + 一二节 + period + 2 + rawWeek + 7周 + teacher + 相国涛 + type + 必修 + week + + 7 + + weekBegin + 7 + weekEnd + 7 + weekModel + all + + + begin_lesson + 1 + classroom + 物理实验室(三)(综合实验楼C205) + course + 大学物理实验A(上) + course_num + A2110670 + day + 星期二 + hash_day + 1 + hash_lesson + 0 + lesson + 一二节 + period + 2 + rawWeek + 5周 + teacher + 相国涛 + type + 必修 + week + + 5 + + weekBegin + 5 + weekEnd + 5 + weekModel + all + + + begin_lesson + 1 + classroom + 物理实验室(一)(综合实验楼C201/C202) + course + 大学物理实验A(上) + course_num + A2110670 + day + 星期二 + hash_day + 1 + hash_lesson + 0 + lesson + 一二节 + period + 2 + rawWeek + 3周,13周 + teacher + 相国涛 + type + 必修 + week + + 3 + 13 + + weekBegin + 3 + weekEnd + 13 + weekModel + all + + + begin_lesson + 1 + classroom + 光学设计性实验室(综合实验楼C312/C313) + course + 大学物理实验A(上) + course_num + A2110670 + day + 星期二 + hash_day + 1 + hash_lesson + 0 + lesson + 一二节 + period + 2 + rawWeek + 1周 + teacher + 相国涛 + type + 必修 + week + + 1 + + weekBegin + 1 + weekEnd + 1 + weekModel + all + + + begin_lesson + 3 + classroom + 3501 + course + 大学物理A(上) + course_num + A1110290 + day + 星期二 + hash_day + 1 + hash_lesson + 1 + lesson + 三四节 + period + 2 + rawWeek + 1-17周 + teacher + 潘娜娜 + type + 必修 + week + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + + weekBegin + 1 + weekEnd + 17 + weekModel + all + + + begin_lesson + 7 + classroom + 4401 + course + 数字与逻辑电路基础 + course_num + A2020390 + day + 星期二 + hash_day + 1 + hash_lesson + 3 + lesson + 七八节 + period + 2 + rawWeek + 1-13周 + teacher + 贺利芳 + type + 必修 + week + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + + weekBegin + 1 + weekEnd + 13 + weekModel + all + + + begin_lesson + 1 + classroom + 3501 + course + 高等数学A(下) + course_num + A1110020 + day + 星期三 + hash_day + 2 + hash_lesson + 0 + lesson + 一二节 + period + 2 + rawWeek + 1-15周 + teacher + 李玲 + type + 必修 + week + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + + weekBegin + 1 + weekEnd + 15 + weekModel + all + + + begin_lesson + 5 + classroom + 4301 + course + 大学英语3 + course_num + A1050050 + day + 星期三 + hash_day + 2 + hash_lesson + 2 + lesson + 五六节 + period + 2 + rawWeek + 1-16周 + teacher + 毕丽君(外聘) + type + 必修 + week + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + + weekBegin + 1 + weekEnd + 16 + weekModel + all + + + begin_lesson + 7 + classroom + 2215 + course + 中华诗词之美(Mooc) + course_num + Mooc05 + day + 星期三 + hash_day + 2 + hash_lesson + 3 + lesson + 七八节 + period + 2 + rawWeek + 3周,8周 + teacher + 祖秋阳 + type + 选修 + week + + 3 + 8 + + weekBegin + 3 + weekEnd + 8 + weekModel + all + + + begin_lesson + 9 + classroom + 智能科学与技术实验室(综合实验楼B515) + course + 数据结构 + course_num + A1040080 + day + 星期三 + hash_day + 2 + hash_lesson + 4 + lesson + 九十节 + period + 2 + rawWeek + 9-16周 + teacher + 李鸿健 + type + 必修 + week + + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + + weekBegin + 9 + weekEnd + 16 + weekModel + all + + + begin_lesson + 1 + classroom + 3501 + course + 高等数学A(下) + course_num + A1110020 + day + 星期四 + hash_day + 3 + hash_lesson + 0 + lesson + 一二节 + period + 2 + rawWeek + 1-6周,8-15周 + teacher + 李玲 + type + 必修 + week + + 1 + 2 + 3 + 4 + 5 + 6 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + + weekBegin + 1 + weekEnd + 15 + weekModel + all + + + begin_lesson + 3 + classroom + 电子技术实验室(五)(综合实验楼B209/B210) + course + 数字电路与逻辑设计实验A + course_num + A2021060 + day + 星期四 + hash_day + 3 + hash_lesson + 1 + lesson + 三四节 + period + 2 + rawWeek + 6-8周双周,10-15周 + teacher + 黄沛昱 + type + 必修 + week + + 6 + 8 + 10 + 11 + 12 + 13 + 14 + 15 + + weekBegin + 6 + weekEnd + 15 + weekModel + double + + + begin_lesson + 5 + classroom + 运动场1 + course + 啦啦操二班 + course_num + A1090020 + day + 星期四 + hash_day + 3 + hash_lesson + 2 + lesson + 五六节 + period + 2 + rawWeek + 1-16周 + teacher + 杨慧君 + type + 必修 + week + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + + weekBegin + 1 + weekEnd + 16 + weekModel + all + + + begin_lesson + 9 + classroom + 3205 + course + 数据结构 + course_num + A1040080 + day + 星期四 + hash_day + 3 + hash_lesson + 4 + lesson + 九十节 + period + 2 + rawWeek + 1-6周,8-17周 + teacher + 毕秀丽 + type + 必修 + week + + 1 + 2 + 3 + 4 + 5 + 6 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + + weekBegin + 1 + weekEnd + 17 + weekModel + all + + + begin_lesson + 1 + classroom + 2402 + course + 形势与政策 + course_num + A1100010 + day + 星期五 + hash_day + 4 + hash_lesson + 0 + lesson + 一二节 + period + 2 + rawWeek + 5-6周,8周 + teacher + 李文清 + type + 必修 + week + + 5 + 6 + 8 + + weekBegin + 5 + weekEnd + 8 + weekModel + all + + + begin_lesson + 3 + classroom + 4401 + course + 数字与逻辑电路基础 + course_num + A2020390 + day + 星期五 + hash_day + 4 + hash_lesson + 1 + lesson + 三四节 + period + 2 + rawWeek + 1-6周,8-12周 + teacher + 贺利芳 + type + 必修 + week + + 1 + 2 + 3 + 4 + 5 + 6 + 8 + 9 + 10 + 11 + 12 + + weekBegin + 1 + weekEnd + 12 + weekModel + all + + + begin_lesson + 5 + classroom + 电子技术实验室(五)(综合实验楼B209/B210) + course + 数字电路与逻辑设计实验A + course_num + A2021060 + day + 星期五 + hash_day + 4 + hash_lesson + 2 + lesson + 五六节 + period + 2 + rawWeek + 6-8周双周,10-15周 + teacher + 黄沛昱 + type + 必修 + week + + 6 + 8 + 10 + 11 + 12 + 13 + 14 + 15 + + weekBegin + 6 + weekEnd + 15 + weekModel + double + + + begin_lesson + 7 + classroom + 3501 + course + 大学物理A(上) + course_num + A1110290 + day + 星期五 + hash_day + 4 + hash_lesson + 3 + lesson + 七八节 + period + 2 + rawWeek + 1-5周单周,9-15周单周 + teacher + 潘娜娜 + type + 必修 + week + + 1 + 3 + 5 + 9 + 11 + 13 + 15 + + weekBegin + 1 + weekEnd + 15 + weekModel + single + + + nowWeek + 12 + outOfDateTimestamp + 1528006320465 + status + 200 + stuNum + 2017210338 + success + + term + 2017-2018学年第2学期 + version + 16.9.4 + + diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/SignInViewController.h" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/SignInViewController.h" new file mode 100644 index 0000000..2f02fe4 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/SignInViewController.h" @@ -0,0 +1,24 @@ +// +// SignInViewController.h +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/25. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import + +@protocol DataDelegate +@required + +- (void)GetUserImformation:(NSMutableDictionary *)dic; + +@end + +@interface SignInViewController : UIViewController + +@property (nonatomic, strong) iddelegate; + + + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/SignInViewController.m" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/SignInViewController.m" new file mode 100644 index 0000000..50f2989 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/SignInViewController.m" @@ -0,0 +1,128 @@ +// +// SignInViewController.m +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/25. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import "SignInViewController.h" +#import "ViewController.h" +#import "YouAskViewController.h" + +#define Width [UIScreen mainScreen].bounds.size.width +#define Height [UIScreen mainScreen].bounds.size.height + +@interface SignInViewController () +@property (nonatomic, strong) UIImageView *image1; +@property (nonatomic, strong) UIImageView *image2; +@property (nonatomic, strong) UIView *view3; +@property (nonatomic, strong) UITextView *name; +@property (nonatomic, strong) UITextView *code; +@property (nonatomic, strong) UIButton *signInbutton; +@property (nonatomic, strong) NSMutableDictionary *dic; + +@end + +@implementation SignInViewController + + +- (void)viewDidLoad { + [super viewDidLoad]; + + self.image1 = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, Width, Height/2-70)]; + self.image1.backgroundColor = [UIColor colorWithRed:0.557 green:0.835 blue:0.984 alpha:1.0]; + [self.view addSubview:self.image1]; + self.image2 = [[UIImageView alloc]initWithFrame:CGRectMake(Width/2-75, 100, 150, 150)]; + self.image2.image = [UIImage imageNamed:@"logo"]; + self.image2.backgroundColor = [UIColor clearColor]; + [self.view addSubview:self.image2]; +// self.view3 = [[UIImageView alloc]initWithFrame:CGRectMake(20, Height/2+100, Width-40, Height/3+70)]; +// self.view3.backgroundColor = [UIColor clearColor]; +// [self.view addSubview:self.view3]; + self.name = [[UITextView alloc]initWithFrame:CGRectMake(40, Height/3+80, Width-80, 60)]; + self.name.editable = YES; + self.name.text = @"请输入学号"; + self.name.textColor = [UIColor lightGrayColor]; + self.name.font = [UIFont systemFontOfSize:20]; + self.name.textAlignment = NSTextAlignmentLeft; + self.name.layer.borderColor = [UIColor lightGrayColor].CGColor; + self.name.layer.borderWidth = 1; + self.name.layer.cornerRadius =5; + [self.view addSubview:self.name]; + self.code = [[UITextView alloc]initWithFrame:CGRectMake(40, Height/3+160, Width-80, 60)]; + self.code.editable = YES; + self.code.text = @"请输入身份证后六位"; + self.code.textColor = [UIColor lightGrayColor]; + self.code.font = [UIFont systemFontOfSize:20]; + self.code.textAlignment = NSTextAlignmentLeft; + self.code.layer.borderColor = [UIColor lightGrayColor].CGColor; + self.code.layer.borderWidth = 1; + self.code.layer.cornerRadius = 5; + [self.view addSubview:self.code]; + self.signInbutton = [[UIButton alloc]initWithFrame:CGRectMake(40, Height/3+260, Width-80, 50)]; + self.signInbutton.backgroundColor = [UIColor colorWithRed:0.557 green:0.835 blue:0.984 alpha:1.0]; + [self.signInbutton setTitle:@"登陆" forState:UIControlStateNormal]; +// self.signInbutton = [UIButton buttonWithType:UIButtonTypeCustom]; + [self.signInbutton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [self.signInbutton addTarget:self action:@selector(didClickButton:) forControlEvents:UIControlEventTouchUpInside]; + [self.view addSubview:self.signInbutton]; + + // Do any additional setup after loading the view. +} + +- (void)didClickButton:(UIButton *)button{ + [self uploadData]; + [self.dic setObject:self.name.text forKey:@"name"]; + [self.dic setObject:self.code.text forKey:@"code"]; + [self.delegate GetUserImformation:self.dic]; + ViewController *vc = [[ViewController alloc] init]; + [self.navigationController pushViewController:vc animated:YES]; + +} + +- (void)uploadData{ + NSBundle *bundle = [NSBundle mainBundle]; + NSString *filePath1 = [bundle pathForResource:@"Messages" ofType:@"plist"]; + NSString *filePath2 = [bundle pathForResource:@"Schedule" ofType:@"plist"]; + NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://wx.idsbllp.cn/api/verify"]]; + + [request setHTTPMethod:@"POST"]; + [request setCachePolicy:NSURLRequestReloadIgnoringCacheData]; + [request setTimeoutInterval:20]; + NSString *str = [NSString stringWithFormat:@"stuNum=%@&idNum=%@",self.name.text,self.code.text]; + [request setHTTPBody:[str dataUsingEncoding:NSUTF8StringEncoding]]; + NSError *error = nil; + NSHTTPURLResponse *urlResponse = nil; + NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&urlResponse error:&error]; + NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:responseData options:kNilOptions error:nil]; + + + [dict writeToFile: filePath1 atomically:YES]; + + + NSMutableURLRequest *request1 = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://wx.idsbllp.cn/api/kebiao"]]; + + [request1 setHTTPMethod:@"POST"]; + [request1 setCachePolicy:NSURLRequestReloadIgnoringCacheData]; + [request1 setTimeoutInterval:20]; + NSString *numStr1 = [NSString stringWithFormat:@"stu_num=%@&forceFetch=true",self.name.text]; + [request1 setHTTPBody:[numStr1 dataUsingEncoding:NSUTF8StringEncoding]]; + NSError *error1 = nil; + NSHTTPURLResponse *urlResponse1 = nil; + NSData *responseData1 = [NSURLConnection sendSynchronousRequest:request1 returningResponse:&urlResponse1 error:&error1]; + NSDictionary *dict1 = [NSJSONSerialization JSONObjectWithData:responseData1 options:kNilOptions error:nil]; + [dict1 writeToFile: filePath2 atomically:YES]; + +} + + + + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/ViewController.h" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/ViewController.h" new file mode 100644 index 0000000..3641a69 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/ViewController.h" @@ -0,0 +1,15 @@ +// +// ViewController.h +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/25. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import + +@interface ViewController : UIViewController +@property (nonatomic, strong) NSNumber *nowWeek; + +@end + diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/ViewController.m" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/ViewController.m" new file mode 100644 index 0000000..c211c99 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/ViewController.m" @@ -0,0 +1,393 @@ +// +// ViewController.m +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/25. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import "ViewController.h" +#import "SignInViewController.h" + + +#define Width [UIScreen mainScreen].bounds.size.width +#define Height [UIScreen mainScreen].bounds.size.height +#define buttonWidth (Width - 20) / 7 +#define buttonHeight (Height - 150) / 6 + +int schedule[7][6]; + + + + +@interface ViewController () +@property (nonatomic, retain) UIScrollView *scrollView; +@property (nonatomic, strong) UIImageView *img; +@property (nonatomic, retain) UIButton *btn; +@property (nonatomic, strong) NSMutableArray *dataArray; +@property (nonatomic, strong) NSMutableDictionary *dic; +@property (nonatomic, strong) NSString *numStr; +@property (nonatomic, strong) NSMutableArray *ScheduleArray; +@property (nonatomic, strong) NSMutableArray *All_inArray; +@property (nonatomic, strong) NSMutableArray *weekSchedule; +@property (nonatomic, strong) UIPickerView *picker; +@property (assign, nonatomic,getter=isHidden) BOOL hidden; +@property (nonatomic, strong) UIButton *button; + + +@end + +@implementation ViewController + + +- (void)viewDidLoad { + [super viewDidLoad]; + NSBundle *bundle = [NSBundle mainBundle]; +// NSString *filePath1 = [bundle pathForResource:@"Messages" ofType:@"plist"]; + NSString *filePath = [bundle pathForResource:@"Schedule" ofType:@"plist"]; + self.dic = [[NSMutableDictionary alloc]initWithContentsOfFile:filePath]; + self.title = @"课表"; + self.dataArray = [[NSMutableArray alloc]init]; + if ([self.dic count]) { + self.nowWeek = [self.dic valueForKey:@"nowWeek"]; + self.dataArray = [self.dic valueForKey:@"data"]; + } + else + self.dataArray = [@[] mutableCopy]; + + self.weekSchedule = [[NSMutableArray alloc]init]; + + self.navigationController.navigationBarHidden = YES; + self.hidden = NO; + self.picker = [[UIPickerView alloc]init]; + self.picker.delegate = self; + self.picker.dataSource = self; + self.picker.backgroundColor = [UIColor colorWithHue:0.0000 saturation:0.0000 brightness:0.8706 alpha:1.0]; + + self.button = [[UIButton alloc]initWithFrame:CGRectMake(Width/2-50, 20, 100, 45)]; + [self.button setTitle:[NSString stringWithFormat:@"第%@周",_nowWeek] forState:UIControlStateNormal]; + [self.button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + self.button.backgroundColor = [UIColor clearColor]; + [self.button addTarget:self action:@selector(tabHiddenOrShow) forControlEvents:UIControlEventTouchUpInside]; + + UIView *View = [[UIView alloc]initWithFrame:CGRectMake(0, 0, Width, 65)]; + View.backgroundColor = [UIColor colorWithRed:0.557 green:0.835 blue:0.984 alpha:1.0]; + [self.view addSubview:View]; + [self.view addSubview:self.button]; + + + self.scrollView = [[UIScrollView alloc] init]; + self.scrollView.frame = CGRectMake(0, 65, Width, Height-65); + for (int i = 0; i < 7; i++) { + UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(20 + buttonWidth*i, 65, buttonWidth, 40)]; + label1.text = [NSString stringWithFormat:@"周%i",i+1]; + label1.textColor = [UIColor colorWithRed:0.557 green:0.835 blue:0.984 alpha:1.0]; + label1.font = [UIFont systemFontOfSize:13]; + label1.textAlignment = NSTextAlignmentCenter; + label1.backgroundColor = [UIColor colorWithHue:0.5694 saturation:0.0478 brightness:0.9843 alpha:1.0]; + [self.view addSubview:label1]; + } + for (int i = 0; i < 12; i++) { + UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(0, 105+buttonHeight/2*i, 20, buttonHeight/2)]; + label1.text = [NSString stringWithFormat:@"%i",i+1]; + label1.textColor = [UIColor colorWithRed:0.557 green:0.835 blue:0.984 alpha:1.0]; + label1.font = [UIFont systemFontOfSize:13]; + label1.textAlignment = NSTextAlignmentCenter; + label1.backgroundColor = [UIColor colorWithHue:0.5694 saturation:0.0478 brightness:0.9843 alpha:1.0]; + [self.view addSubview:label1]; + } + + if (_dataArray != nil && ![_dataArray isKindOfClass:[NSNull class]] && _dataArray.count != 0) { + self.img.hidden = YES; + self.btn.hidden = YES; + [self loadData:self.nowWeek]; + [self loadMyScrollView:schedule]; + } + else{ + self.img = [[UIImageView alloc] initWithFrame:CGRectMake(Width/2-100, 150, 200, 200)]; + self.img.image = [UIImage imageNamed:@"no_course"]; + self.img.backgroundColor = [UIColor clearColor]; + [self.scrollView addSubview: self.img]; + self.btn = [[UIButton alloc]initWithFrame:CGRectMake(Width/2-75, 450, 150, 20)]; + [self.btn setTitle:@"登陆查看课表" forState:UIControlStateNormal]; + [self.btn setTitleColor:[UIColor colorWithRed:0.557 green:0.835 blue:0.984 alpha:1.0] forState:UIControlStateNormal]; + self.btn.backgroundColor = [UIColor whiteColor]; + [self.btn addTarget:self action:@selector(didClickButton1:) forControlEvents:UIControlEventTouchUpInside]; + [self.scrollView addSubview:self.btn]; + } + [self.view addSubview: self.scrollView]; + + +} + +- (void)loadScheduleArray{ + self.ScheduleArray = [[NSMutableArray alloc] init]; + self.ScheduleArray = [@[] mutableCopy]; + self.All_inArray = [[NSMutableArray alloc] init]; + self.All_inArray = [@[] mutableCopy]; + int Schel[7][6]; + + NSMutableArray *arr1 = [[NSMutableArray alloc]init]; + NSMutableArray *arr2 = [[NSMutableArray alloc]init]; + NSMutableArray *arr3 = [[NSMutableArray alloc]init]; + for (int i = 0; i < 20; i++) { + arr1 = [@[] mutableCopy]; + for (int n = 0; n < 7; n++) { + for (int j = 0; j < 6; j++) { + Schel[n][j] = 0; + } + } + arr3 = [@[] mutableCopy]; + for (NSDictionary *dict in _dataArray) { + NSMutableArray *array = [dict valueForKey:@"week"]; + for (NSNumber *num in array) { + int a = [num intValue]; + if (a == i+1) { + [arr3 addObject:dict]; + break; + } + } + } + + for (int n = 0; n < arr3.count; n++) { + NSMutableDictionary *dict = [[NSMutableDictionary alloc] init]; + dict = [arr3 objectAtIndex:i]; + NSNumber *day = [dict valueForKey:@"hash_day"]; + NSNumber *class = [dict valueForKey:@"hash_lesson"]; + int a = [day intValue]; + int b = [class intValue]; + + Schel[a][b] = 1; + } + for (int n = 0; n < 7; n++) { + for (int j = 0; j < 6; j++) { + if (Schel[n][j] != 1) { + Schel[n][j] = 0; + continue; + } + } + } + for (int n = 0; n < 7; n++) { + arr1 = [@[] mutableCopy]; + for (int j = 0; j < 6; j++) { + NSNumber *num = [NSNumber numberWithInt:schedule[n][j]]; + [arr1 addObject:num]; + } + [arr2 addObject:arr1]; + } + [self.All_inArray addObject:arr3]; + [self.ScheduleArray addObject:arr2]; + } +} + +- (void)loadMyScrollView:(int *)data{ + long int n = 0; + for (int i = 0; i < 7; i++) { + for (int j = 0; j < 6; j++) { + if (*(data ++) == 1) { + + if (n != 0) { + NSDictionary *dict = [[NSDictionary alloc]init]; + dict = [_weekSchedule objectAtIndex:n]; + NSDictionary *dict1 =[[NSDictionary alloc]init]; + dict1 = [_weekSchedule objectAtIndex:n-1]; + NSString *courseNum1 = [dict valueForKey:@"course_num"]; + NSString *courseNum2 = [dict1 valueForKey:@"course_num"]; + + const char *a = [courseNum1 UTF8String]; + const char *b = [courseNum2 UTF8String]; + int c = strcmp(a, b); + while (c == 0) + { + n++; + NSDictionary *dict = [[NSDictionary alloc]init]; + dict = [_weekSchedule objectAtIndex:n]; + NSDictionary *dict1 =[[NSDictionary alloc]init]; + dict1 = [_weekSchedule objectAtIndex:n-1]; + NSString *courseNum1 = [dict valueForKey:@"course_num"]; + NSString *courseNum2 = [dict1 valueForKey:@"course_num"]; + + const char *a = [courseNum1 UTF8String]; + const char *b = [courseNum2 UTF8String]; + c = strcmp(a, b); + } + dict = [_weekSchedule objectAtIndex:n]; + UIView *View = [[UIView alloc] initWithFrame:CGRectMake(22 + buttonWidth*i, 105 + buttonHeight*j, buttonWidth - 4, buttonHeight - 2)]; + if (j < 2) + View.backgroundColor = [UIColor colorWithHue:0.9658 saturation:0.3436 brightness:0.8902 alpha:1.0]; + else if (j < 4) + View.backgroundColor = [UIColor colorWithHue:0.0884 saturation:0.4118 brightness:0.9333 alpha:1.0]; + else + View.backgroundColor = [UIColor colorWithHue:0.6054 saturation:0.4033 brightness:0.9529 alpha:1.0]; + + UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(2, 0, buttonWidth - 4, buttonHeight-25)]; + label1.text = [dict valueForKey:@"course"]; + label1.numberOfLines = 3; + label1.textColor = [UIColor whiteColor]; + label1.font = [UIFont systemFontOfSize:13]; + label1.textAlignment = NSTextAlignmentCenter; + label1.backgroundColor = [UIColor clearColor]; + [View addSubview:label1]; + UILabel *label2 = [[UILabel alloc] initWithFrame:CGRectMake(2, buttonHeight-20, buttonWidth-4, 20)]; + + label2.text = [dict valueForKey:@"classroom"]; + label2.textAlignment = NSTextAlignmentCenter; + label2.textColor = [UIColor whiteColor]; + label2.font = [UIFont systemFontOfSize:13]; + label2.backgroundColor = [UIColor clearColor]; + [View addSubview:label2]; + [self.view addSubview:View]; + n++; + continue; + } + else{ + NSDictionary *dict = [[NSDictionary alloc]init]; + dict = [_weekSchedule objectAtIndex:n]; + UIView *View = [[UIView alloc] initWithFrame:CGRectMake(22 + buttonWidth*i, 105 + buttonHeight*j, buttonWidth - 4, buttonHeight - 2)]; + if (j < 2) + View.backgroundColor = [UIColor colorWithHue:0.9658 saturation:0.3436 brightness:0.8902 alpha:1.0]; + else if (j < 4) + View.backgroundColor = [UIColor colorWithHue:0.0884 saturation:0.4118 brightness:0.9333 alpha:1.0]; + else + View.backgroundColor = [UIColor colorWithHue:0.6054 saturation:0.4033 brightness:0.9529 alpha:1.0]; + + UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(2, 0, buttonWidth - 4, buttonHeight-25)]; + label1.text = [dict valueForKey:@"course"]; + label1.numberOfLines = 3; + label1.textColor = [UIColor whiteColor]; + label1.font = [UIFont systemFontOfSize:13]; + label1.textAlignment = NSTextAlignmentCenter; + label1.backgroundColor = [UIColor clearColor]; + [View addSubview:label1]; + UILabel *label2 = [[UILabel alloc] initWithFrame:CGRectMake(2, buttonHeight-20, buttonWidth-4, 20)]; + + label2.text = [dict valueForKey:@"classroom"]; + label2.textAlignment = NSTextAlignmentCenter; + label2.textColor = [UIColor whiteColor]; + label2.font = [UIFont systemFontOfSize:13]; + label2.backgroundColor = [UIColor clearColor]; + [View addSubview:label2]; + [self.view addSubview:View]; + n++; + continue; + } + + } + } + } + +} + + +- (void)didClickButton1:(UIButton *)button{ + SignInViewController *vc = [[SignInViewController alloc]init]; + [self.navigationController pushViewController:vc animated:YES]; +} + + + + +- (void)loadData:(NSNumber *)week{ + + self.weekSchedule = [@[] mutableCopy]; + for (NSDictionary *dict in _dataArray) { + NSMutableArray *array = [dict valueForKey:@"week"]; + for (NSNumber *num in array) { + int a = [num intValue]; + int b = [week intValue]; + if (a == b) { + [self.weekSchedule addObject:dict]; + break; + } + } + } + + for (int i = 0; i < self.weekSchedule.count; i++) { + NSMutableDictionary *dict = [[NSMutableDictionary alloc] init]; + dict = [_weekSchedule objectAtIndex:i]; + NSNumber *day = [dict valueForKey:@"hash_day"]; + NSNumber *class = [dict valueForKey:@"hash_lesson"]; + int a = [day intValue]; + int b = [class intValue]; + + schedule[a][b] = 1; + } + for (int i = 0; i < 7; i++) { + for (int j = 0; j < 6; j++) { + if (schedule[i][j] != 1) { + schedule[i][j] = 0; + continue; + } + } + } + +} + +- (void)EmptyData{ + + for (int i = 0; i < 7; i++) { + for (int j = 0; j < 6; j++) { + schedule[i][j] = 0; + } + } +} + + +-(void)tabHiddenOrShow +{ + NSTimeInterval animationDuration = 0.30f; + [UIView beginAnimations:@"ResizeForKeyboard" context:nil]; + [UIView setAnimationDuration:animationDuration]; + + + if (self.hidden == NO) { +// self.view.frame = CGRectMake(0, -300, Width, Height); + self.picker.frame = CGRectMake(0, Height-300, Width, 300); + [self.view addSubview:self.picker]; + [UIView commitAnimations]; + self.hidden = YES; + } + else{ +// self.view.frame = CGRectMake(0, 0, Width, Height); + self.picker.frame = CGRectMake(0, 300+Height, Width, 300); + [self.view addSubview:self.picker]; + [UIView commitAnimations]; + self.hidden = NO; + } +} + + +- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView{ + return 1; +} + + +- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component{ + return 20; +} + +- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component{ + return [NSString stringWithFormat:@"第%li周",row+1]; + +} + +- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component{ + self.hidden = YES; + [self EmptyData]; + [self loadData:[NSNumber numberWithInteger:row]]; + [self loadMyScrollView:schedule]; + [self.button setTitle: [NSString stringWithFormat:@"第%li周", row+1] forState:UIControlStateNormal]; + [self tabHiddenOrShow]; + +} + + + + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/YouAskTableViewCell.h" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/YouAskTableViewCell.h" new file mode 100644 index 0000000..81f2f6a --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/YouAskTableViewCell.h" @@ -0,0 +1,23 @@ +// +// YouAskTableViewCell.h +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/26. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import + +@interface YouAskTableViewCell : UITableViewCell + +@property (nonatomic, strong) UIButton *btn1; +@property (nonatomic, strong) UIButton *btn2; +@property (nonatomic, strong) UIImageView *img; +@property (nonatomic, strong) UILabel *label1; +@property (nonatomic, strong) UILabel *label2; +@property (nonatomic, strong) UILabel *label3; +@property (nonatomic, weak) UIView *separatorView; + + ++ (instancetype)cellWithTableView:(UITableView *)tableView; +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/YouAskTableViewCell.m" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/YouAskTableViewCell.m" new file mode 100644 index 0000000..3095520 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/YouAskTableViewCell.m" @@ -0,0 +1,96 @@ +// +// YouAskTableViewCell.m +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/26. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import "YouAskTableViewCell.h" + +@implementation YouAskTableViewCell + +#pragma - / ******重写initwithstyle方法******* / +-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier +{ + if (self = [super initWithStyle:style reuseIdentifier: reuseIdentifier]) + { + CGFloat width = [UIScreen mainScreen].bounds.size.width; + UIImageView *img = [[UIImageView alloc] initWithFrame:CGRectMake(5, 0, width-10, 170)]; + img.image = [UIImage imageNamed:@"bg_me_item_full"]; + [self.contentView addSubview:img]; + self.img = img; + UIButton *btn1 = [[UIButton alloc]init]; + btn1.frame = CGRectMake(25, 20, 40, 40); + btn1.layer.cornerRadius = 2.0; + [btn1 setUserInteractionEnabled: NO]; + [self.contentView addSubview:btn1]; + self.btn1 = btn1; + UILabel *label1 = [[UILabel alloc]init]; + label1.frame = CGRectMake(70, 30, 100, 15); + label1.textColor = [UIColor blackColor]; + [self.contentView addSubview: label1]; + self.label1 = label1; + UILabel *label2 = [[UILabel alloc]initWithFrame:CGRectMake(20, 75, width-40, 20)]; + label2.textColor = [UIColor blackColor]; + label2.font = [UIFont systemFontOfSize:25]; + [self.contentView addSubview:label2]; + self.label2 = label2; + UILabel *label3 = [[UILabel alloc]initWithFrame:CGRectMake(20, 110, width-140, 10)]; + label3.textColor = [UIColor darkGrayColor]; + [self.contentView addSubview:label3]; + self.label3 = label3; + UIButton *btn2 = [[UIButton alloc] initWithFrame:CGRectMake(width-120, 110, 100, 10)]; + [btn2 setTitle:@"查看详情" forState:UIControlStateNormal]; + [btn2 setTitleColor:[UIColor colorWithRed:0.557 green:0.835 blue:0.984 alpha:1.0] forState:UIControlStateNormal]; + [self.contentView addSubview:btn2]; + self.btn2 = btn2; + + } + self.backgroundColor = [UIColor clearColor]; + return self; +} + + ++ (instancetype)cellWithTableView:(UITableView *)tableView +{ + static NSString *Identifier = @"status"; + YouAskTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:Identifier]; + if (cell == nil) { + cell = [[YouAskTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:Identifier]; + } + return (YouAskTableViewCell *)cell; +} + +#pragma - / **********设置分割线********* / +-(UIView *)separatorView +{ + if (_separatorView == nil) { + UIView *separatorView = [[UIView alloc]init]; + self.separatorView = separatorView; + separatorView.backgroundColor = [UIColor clearColor]; + [self addSubview:separatorView]; + } + return _separatorView; +} + + +-(void)layoutSubviews +{ + [super layoutSubviews]; + self.separatorView.frame = CGRectMake(0, self.bounds.size.height-1, self.bounds.size.width, 1); +} + + +- (void)awakeFromNib { + [super awakeFromNib]; + // Initialization code +} + +- (void)setSelected:(BOOL)selected animated:(BOOL)animated { + [super setSelected:selected animated:animated]; + + // Configure the view for the selected state +} + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/YouAskViewController.h" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/YouAskViewController.h" new file mode 100644 index 0000000..d664b13 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/YouAskViewController.h" @@ -0,0 +1,13 @@ +// +// YouAskViewController.h +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/26. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import + +@interface YouAskViewController : UIViewController + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/YouAskViewController.m" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/YouAskViewController.m" new file mode 100644 index 0000000..14480c8 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/YouAskViewController.m" @@ -0,0 +1,110 @@ +// +// YouAskViewController.m +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/26. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import "YouAskViewController.h" +#import "YouAskTableViewCell.h" +#import "MymessageTableViewCell.h" +#import "DetailViewController.h" +//#import "SignInViewController.h" + +@interface YouAskViewController () +@property (nonatomic, retain) UITableView *tableView; +@property (nonatomic, strong) NSMutableArray *dataArray; +//@property (nonatomic, strong) NSMutableDictionary *dic; + +@end + +@implementation YouAskViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + + self.dataArray = [[NSMutableArray alloc]init]; + self.dataArray = [@[] mutableCopy]; + [self loadData]; + +// SignInViewController *data = [[SignInViewController alloc]init]; +// data.delegate = self; +// + + CGFloat Width = [UIScreen mainScreen].bounds.size.width; + CGFloat height = [UIScreen mainScreen].bounds.size.height; + self.tableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, Width, height) style:UITableViewStylePlain]; + self.tableView.delegate = self; + self.tableView.dataSource = self; + self.tableView.rowHeight = 150; + + [self.view addSubview:self.tableView]; + +} + + + + +- (void)loadData{ + NSBundle *bundle = [NSBundle mainBundle]; + NSString *filePath = [bundle pathForResource:@"Questions" ofType:@"plist"]; + + NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://wx.idsbllp.cn/springtest/cyxbsMobile/index.php/QA/Question/getQuestionList"]]; + + [request setHTTPMethod:@"POST"]; + [request setCachePolicy:NSURLRequestReloadIgnoringCacheData]; + [request setTimeoutInterval:20]; + NSString *str = @"kind=学习"; + [request setHTTPBody:[str dataUsingEncoding:NSUTF8StringEncoding]]; + NSError *error = nil; + NSHTTPURLResponse *urlResponse = nil; + NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&urlResponse error:&error]; + NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:responseData options:kNilOptions error:nil]; + [dict writeToFile: filePath atomically:YES]; + + self.dataArray = [dict valueForKey:@"data"]; + + +} + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ + return 1; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ + + return self.dataArray.count; +} + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath +{ + YouAskTableViewCell *cell = [YouAskTableViewCell cellWithTableView:tableView]; + cell.backgroundColor = [UIColor clearColor]; + NSMutableDictionary *dic1 = [[NSMutableDictionary alloc]init]; + dic1 = [self.dataArray objectAtIndex: indexPath.row]; + [cell.btn1 setImage:[UIImage imageNamed:@"default_avatar"] forState:UIControlStateNormal]; + cell.label1.text = [dic1 valueForKey:@"nickname"]; + cell.label2.text = [dic1 valueForKey:@"title"]; + cell.label3.text = [dic1 valueForKey:@"description"]; + + return cell; + +} + +- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ + DetailViewController *vc = [[DetailViewController alloc] init]; + NSDictionary *diction = [self.dataArray objectAtIndex:indexPath.row]; + [vc setID:[diction valueForKey:@"id"]]; + [self.navigationController pushViewController:vc animated:YES]; +} + + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/discoverViewController.h" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/discoverViewController.h" new file mode 100644 index 0000000..331df06 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/discoverViewController.h" @@ -0,0 +1,13 @@ +// +// discoverViewController.h +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/25. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import + +@interface discoverViewController : UIViewController + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/discoverViewController.m" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/discoverViewController.m" new file mode 100644 index 0000000..e010e02 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/discoverViewController.m" @@ -0,0 +1,62 @@ +// +// discoverViewController.m +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/25. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import "discoverViewController.h" + +@interface discoverViewController () +@property (nonatomic, strong) NSArray *array; + +@end + +@implementation discoverViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + [self loadArray]; + CGFloat Width = [UIScreen mainScreen].bounds.size.width; + CGFloat Height = [UIScreen mainScreen].bounds.size.height; + int n = 1; + for (int i = 0; i < 3; i++) { + for (int j = 0; j < 3; j++) { + UIButton *btn = [[UIButton alloc]initWithFrame:CGRectMake(Width/3-70+100*j, Height/2-50+(105*i), 80, 80)]; + [btn setImage:[UIImage imageNamed:[NSString stringWithFormat:@"%i",n]] forState:UIControlStateNormal]; + btn.layer.cornerRadius = 2.0; + [self.view addSubview:btn]; + UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(Width/3-70+100*j, Height/2+32+(105*i), 80, 15)]; + label.textAlignment = NSTextAlignmentCenter; + label.text = [_array objectAtIndex:n-1]; + label.textColor = [UIColor lightGrayColor]; + label.backgroundColor = [UIColor clearColor]; + [self.view addSubview:label]; + n++; + } + } + // Do any additional setup after loading the view. +} + +- (void)loadArray{ + self.array = [[NSArray alloc] init]; + self.array = @[@"没课约",@"空教室",@"成绩单",@"志愿时长",@"重邮地图",@"课前提醒",@"校历",@"查电费",@"关于红岩"]; +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +/* +#pragma mark - Navigation + +// In a storyboard-based application, you will often want to do a little preparation before navigation +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { + // Get the new view controller using [segue destinationViewController]. + // Pass the selected object to the new view controller. +} +*/ + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/main.m" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/main.m" new file mode 100644 index 0000000..725c396 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256Demo/main.m" @@ -0,0 +1,16 @@ +// +// main.m +// 掌上重邮Demo +// +// Created by 丁磊 on 2018/5/25. +// Copyright © 2018年 丁磊. All rights reserved. +// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256DemoTests/Info.plist" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256DemoTests/Info.plist" new file mode 100644 index 0000000..6c40a6c --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256DemoTests/Info.plist" @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256DemoTests/____DemoTests.m" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256DemoTests/____DemoTests.m" new file mode 100644 index 0000000..2d78ff2 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256DemoTests/____DemoTests.m" @@ -0,0 +1,33 @@ +//___FILEHEADER___ + +#import + +@interface ___FILEBASENAMEASIDENTIFIER___ : XCTestCase + +@end + +@implementation ___FILEBASENAMEASIDENTIFIER___ + +- (void)setUp { + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. +} + +- (void)testPerformanceExample { + // This is an example of a performance test case. + [self measureBlock:^{ + // Put the code you want to measure the time of here. + }]; +} + +@end diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256DemoUITests/Info.plist" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256DemoUITests/Info.plist" new file mode 100644 index 0000000..6c40a6c --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256DemoUITests/Info.plist" @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git "a/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256DemoUITests/____DemoUITests.m" "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256DemoUITests/____DemoUITests.m" new file mode 100644 index 0000000..be06088 --- /dev/null +++ "b/\346\216\214\344\270\212\351\207\215\351\202\256Demo/\346\216\214\344\270\212\351\207\215\351\202\256DemoUITests/____DemoUITests.m" @@ -0,0 +1,34 @@ +//___FILEHEADER___ + +#import + +@interface ___FILEBASENAMEASIDENTIFIER___ : XCTestCase + +@end + +@implementation ___FILEBASENAMEASIDENTIFIER___ + +- (void)setUp { + [super setUp]; + + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + self.continueAfterFailure = NO; + // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. + [[[XCUIApplication alloc] init] launch]; + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample { + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. +} + +@end