资源简介
仿微信的主界面,部分代码,入门可看。大神勿喷,谢谢。
![](http://www.nz998.com/pic/51242.jpg)
代码片段和文件信息
//
// AppDelegate.m
// demo7_framework
//
// Created by taiping on 16/10/10.
// Copyright © 2016年 taiping008. All rights reserved.
//
#import “AppDelegate.h“
#import “WUBookViewController.h“
#import “WUMessageViewController.h“
#import “WUOtherViewController.h“
@interface AppDelegate (){
UINavigationController *msgController;//寄语
UINavigationController *bookController;//通讯录
UINavigationController *otherController;//其他
WUMessageViewController *msgViewController;
WUBookViewController *bookViewController;
WUOtherViewController *otherViewController;
}
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [UIWindow new];
self.window.frame = CGRectMake(0 0 [UIScreen mainScreen].bounds.size.width [UIScreen mainScreen].bounds.size.height);
//tabbar
UITabBarController *tabbarController = [UITabBarController new];
//navigation rootviewcontroller
msgViewController = [WUMessageViewController new];
bookViewController = [WUBookViewController new];
otherViewController = [WUOtherViewController new];
//navigation
msgController = [[UINavigationController alloc] initWithRootViewController:msgViewController];
bookController = [[UINavigationController alloc] initWithRootViewController:bookViewController];
otherController = [[UINavigationController alloc] initWithRootViewController:otherViewController];
tabbarController.viewControllers = @[msgController bookController otherController];
//tabbatitem x3
UITabBarItem *msgItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemMostViewed tag:0];
msgItem.title = @“消息“;
UITabBarItem *bookItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemContacts tag:1];
bookItem.title = @“联系人“;
UITabBarItem *otherItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemMore tag:2];
otherItem.title = @“更多“;
msgController.tabBarItem = msgItem;
bookController.tabBarItem = bookItem;
otherController.tabBarItem = otherItem;
//设置第一选择颜色
msgController.tabBarController.tabBar.tintColor = [UIColor brownColor];
self.window.rootViewController = tabbarController;
[self.window makeKeyAndVisible];
[self addNavigationBarButton];
return YES;
}
- (void)addNavigationBarButton{
//left
UIBarButtonItem *nameItem = [UIBarButtonItem new];
nameItem.title = @“寄语“;
nameItem.tintColor = [UIColor whiteColor];
//right
UIBarButtonItem *searchItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSearch target:self action:@selector(doSearch)];
searchItem.tintColor = [UIColor whiteColor];
UIBarButtonItem *addItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(doAdd)];
addItem.tint
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-10-11 09:15 demo7_fr
文件 6148 2016-10-13 14:00 demo7_fr
目录 0 2016-11-04 10:44 __MACOSX\
目录 0 2016-11-04 10:44 __MACOSX\demo7_fr
文件 120 2016-10-13 14:00 __MACOSX\demo7_fr
目录 0 2016-10-13 13:23 demo7_fr
文件 6148 2016-10-13 13:17 demo7_fr
目录 0 2016-11-04 10:44 __MACOSX\demo7_fr
文件 120 2016-10-13 13:17 __MACOSX\demo7_fr
文件 285 2016-10-10 15:13 demo7_fr
文件 171 2016-10-10 15:13 __MACOSX\demo7_fr
文件 5434 2016-10-13 10:53 demo7_fr
文件 171 2016-10-13 10:53 __MACOSX\demo7_fr
目录 0 2016-10-13 13:33 demo7_fr
文件 6148 2016-10-13 13:24 demo7_fr
目录 0 2016-11-04 10:44 __MACOSX\demo7_fr
文件 120 2016-10-13 13:24 __MACOSX\demo7_fr
目录 0 2016-10-13 11:46 demo7_fr
文件 6148 2016-10-13 11:42 demo7_fr
目录 0 2016-11-04 10:44 __MACOSX\demo7_fr
文件 120 2016-10-13 11:42 __MACOSX\demo7_fr
文件 653 2016-10-13 11:34 demo7_fr
文件 6212 2016-10-13 11:43 demo7_fr
文件 172 2016-10-13 11:43 __MACOSX\demo7_fr
文件 7817 2016-10-13 11:45 demo7_fr
文件 172 2016-10-13 11:45 __MACOSX\demo7_fr
目录 0 2016-10-13 13:33 demo7_fr
文件 1419 2016-10-13 13:33 demo7_fr
文件 425338 2016-10-13 13:29 demo7_fr
文件 361786 2016-10-13 13:29 demo7_fr
文件 580176 2016-10-13 13:27 demo7_fr
............此处省略92个文件信息
- 上一篇:stegdetect for windows
- 下一篇:R语言绘图代码以及展示
相关资源
- 仿微信红包打开特效,3D图片翻转
- 仿微信朋友圈图片拖拽排序
- flutter高仿微信完整项目视频教程.tx
- 仿微信UI界面 全套
- 仿微信通过拍照或者本地图片裁剪完
- 仿微信通讯录列表
- 仿微信客服聊天界面已实现聊天记录
- 仿微信位置列表选择附近地址
- 仿微信聊天软件
- 仿微信弹出“生日快乐”类动画
- 仿微信朋友圈背景封面更换封面相册
- 仿微信滑动翻页UI设计和实现
- 仿微信聊天界面 底部弹出菜单的实现
- 使用fragment实现仿微信界面
- 简单仿微信朋友圈评论功能
- ios仿微信源码
- 安卓7.0模仿微信右上角弹出菜单
- ios 仿微信程序源码
- 仿微信的二维码扫描跟微信一模一样
- 仿微信聊天软件Socket实现包含客户端
- 仿微信二维码、条码扫描
- 模仿微信实现的选人控件
- win32仿微信飞机大战源码
- 摇一摇安卓demo
- 仿微信登录界面
- 仿微信抢红包dialog和动画
- 手把手教学实现仿微信发带图片朋友
- 仿微信评论输入框
- 仿微信添加群聊界面
- cocos creator仿微信小游戏跳一跳源码
评论
共有 条评论