Giter VIP home page Giter VIP logo

bademotest's Introduction

BADemoTest

ios开发中重难点展示

开发中如有问题,可以联系本人

谁还要定制demo的话可以直接跟我私聊!为大家长期免费定制demo! 前提是:时间不定哈!需要把需求图片和功能写详细点,发到我邮箱里!时间我不敢保证

新浪微博:@博爱1616

QQ: 137361770

如果大神发现其中代码有bug,希望可以尽快联系本人修复,在此感谢各路大神的帮助! ###本Demo中使用三方布局工具库【gsdios】开发的SDAutoLayout 原三方库地址: https://github.com/gsdios/SDAutoLayout 在开发中遇到很多问题,非常感谢SDLayout(原作者gsdios)和其他各路大神的帮助,在此基础上开始更新自己开发中的重难点demo,希望能够帮助更多遇到类似难点的同道中人!


推荐:

完全实现button的自定义的类库,pod 导入: pod 'BAButton', '~> 1.0.1'

如果发现pod search BAButton 搜索出来的不是最新版本,需要在终端执行cd转换文件路径命令退回到desktop,然后执行pod setup命令更新本地spec缓存(可能需要几分钟),然后再搜索就可以了 具体步骤:

  • pod setup : 初始化
  • pod repo update : 更新仓库
  • pod search BAButton

对pod还是不熟的同学,可以看下我的博客,是最新的pod安装和使用方法,

在DemoVC7的评论功能中使用了键盘处理的三方库,具体使用清看【AppDelegate】

更新记录:【倒叙】(最新的更新在最上面)【基本每天一更】以后均不加图片展示,需要根据功能自行下载demo运行!

2016.04.12 ---

###1、新增DemoVC19、联系人分组(带索引),中英文混合排序,已优化点击事件!

2016.04.10 ---

###1、新增:runtime的详细说明及demo,首先声明:此demo是CocoChina的大神写的,我搜集了很多相关资料,整合了这个demo,如有版权问题,记得通知下我!立即删除!

2016.04.10 ---

###2、新增DemoVC18,gif动画封装

###1、新增两种动画,CADisplayLink(雪花动画)和CAEmitterLayer(樱花),感兴趣的同学可以看看!

2016.04.9 ---

###2、新增首页的樱花动画!

###1、新增渐变navigation,可自定义navigation,且可滑动返回上一界面!

2016.04.8 ---

###1、新增demoVC17,QQ好友分组,点击事件完美运行!(源码来自git加以优化!)

2016.04.7 ---

###1、新增FPS显示!

2016.04.6 ---

###3、新增demoVC16,友盟分享和友盟登陆!完美封装!

###2、新增新浪微博demo,链接:【 https://github.com/boai/BAWeiBo

###1、新增demoVC15,用MVVM模式优化tabelView,提升流畅度!

2016.04.1 ---

###2、新增AppDelegate+BATest测试,系统版本号等获取! ###1、优化demoVC7和10的评论和回复

2016.03.31 ---

###2、整理了下目前已有的BAKit框架,已打包,后期可pod下载!需要的同学可自行下载!

###1、自定义collectionView的UICollectionViewFlowLayout,仿写了一个LOL的选择英雄的界面(源码来自网络,非原创) image

2016.03.30 ---

###2、APP中的文字和APP名字的国际化多语言处理 具体详情可以查看我的博客:http://www.cnblogs.com/boai/p/5337558.html

image image

###1、新增demoVC13,对webView 和 webVC的封装处理,

UIWebView *webView = [UIWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlStr] ] loaded:^(UIWebView *webView) {
        NSLog(@"Loaded %@", webView.request.URL);
    } failed:^(UIWebView *webView, NSError *error) {
        NSLog(@"Failed loading with error: %@", error.localizedDescription);
    }];
    webView.frame = frame;
    webView.scalesPageToFit = YES;
    [self.view addSubview: webView];

## 2016.03.29 --- 
>##3、新增demoVC12,alert封装,简单的一行代码block回调!
/** 下面是带输入框的alert,自适应系统 */
[self BAAlertWithTitle:@"测试ios7Alert" message:@"ios7Alert message" buttons:@[KCancel, KSure]  textFieldNumber:2 configuration:^(UITextField *field, NSInteger index) {
    if (index == 0)
    {
        field.secureTextEntry = NO;
        field.placeholder = @"请输入账号:";
    }
    if (index == 1)
    {
        field.secureTextEntry = YES;
        field.placeholder = @"请输入密码:";
    }
} animated:YES action:^(NSArray<UITextField *> *fields, NSInteger index) {
    NSLog(@"账号:%@, 密码:%@", fields[0].text, fields[1].text);
}];

image image

###2、新增modal动画封装类,和alert封装类

###1、新版百度地图API的定位于反地理编译的使用详情,具体先看博客,后期更新demo, http://www.cnblogs.com/boai/p/5332365.html

2016.03.28 ---

###1、新增DemoVC11,城市选择器

实现一行代码回调结果:
- (void)getSelectCity:(NSString *)city;

![image](https://github.com/boai/BADemoTest/blob/master/Image/image6.png)

## 2016.03.23 --- 

>##1、新增DemoVC10,多级评论,点击可显示评论详情

![image](https://github.com/boai/BADemoTest/blob/master/Image/image3.png)
![image](https://github.com/boai/BADemoTest/blob/master/Image/image5.png)


## 2016.03.22 --- 

>##1、添加UIImageView 和 UIView 的扩展方法

## 2016.03.20 --- 

>##1、添加【DemoVC9】增加NSString类的扩展

/**

  • 获得系统当前日期和时间
  • @return 获得系统当前日期和时间 */
  • (nullable NSString )getCurrentDateAndTime; /*
  • 时间戳转换【YYYY-MM-dd HH:mm:ss】
  • @param string 时间戳
  • @return 时间戳转换【YYYY-MM-dd HH:mm:ss】 */
  • (nullable NSString )getCurrentDateAndTimeWithTimeString:(nullable NSString )string; /
  • 时间戳转换【YYYY-MM-dd】
  • @param string 时间戳
  • @return 时间戳转换【YYYY-MM-dd】 */
  • (nullable NSString )getDateWithTimeString:(nullable NSString )string; /
  • 时间戳转换【HH:mm】
  • @param string 时间戳
  • @return 时间戳转换【HH:mm】 */
  • (nullable NSString )getTimeWithTimeString:(nullable NSString )string; /
  • 时间转换时间戳
  • @param string 时间
  • @return 时间转换时间戳 */
  • (nullable NSString )getTimeStamp; /*
  • Trim blank characters (space and newline) in head and tail.
  • @return the trimmed string. */
  • (nullable NSString )stringByTrim; /*
  • Try to parse this string and returns an NSNumber.
  • @return Returns an NSNumber if parse succeed, or nil if an error occurs. */
  • (nullable NSNumber )numberValue; /*
  • Returns an NSData using UTF-8 encoding.
  • @return Returns an NSData using UTF-8 encoding. */
  • (nullable NSData )dataValue; /*
  • Create a string from the file in main bundle (similar to [UIImage imageNamed:]).
  • @param name The file name (in main bundle).
  • @return A new string create from the file in UTF-8 character encoding. */
  • (nullable NSString )stringNamed:(nullable NSString )name; /
  • Returns a lowercase NSString for md5 hash.
  • @return Returns a lowercase NSString for md5 hash. */
  • (nullable NSString )md5String; /*
  • Returns a lowercase NSString for hmac using algorithm md5 with key.
  • @param key The hmac key.
  • @return Returns a lowercase NSString for hmac using algorithm md5 with key. */
  • (nullable NSString *)hmacMD5StringWithKey:(nullable NSString *)key;

image

2016.03.19 ---

##2、添加【DemoVC8】可以动态显示label的高度

##1、修复用户在git下载后pod报错的bug,已修复,之前下载的用户可以重新下载!

2016.03.17 ---

##4、【DemoVC7】新增评论列表(用SDAutoLayout 布局库)

####☆☆ 4.1 新增单个评论的评论详情界面 ####☆☆ 4.2 新增点赞、回复按钮,实增评论回复功能,可显示到当前tableView中

##3、【DemoVC6】新增tableView的另一种cell的用法【评论列表(用SDAutoLayout 布局库)】

##2、【DemoVC5】新增tableView的另一种cell的用法【评论列表(用WHC 布局库)】

image

##1、【DemoVC4】新增tableView的另一种cell的用法

image


2016.03.16 ---


##3、【DemoVC3】用SDLayout 布局三方库 和系统frame 混合使用,创建一个多分区,多种cell样式,文字自适应的tableView

☆☆ 3.1 在这个demoVC3中,第二中cell样式中,用纯代码写了一个自定义button(图片在上,文字在下,且都居中显示),有需要的可以直接用,还可以自定义左右显示(第一种cell样式中的playButton就是左右显示)

image

##2、【DemoVC2】用SDLayout 布局三方库,写了一个微信朋友圈(原作者GSD_ios)

image

##1、【DemoVC1】view中嵌套自定义view2,view2中嵌套不同view3、和tableView

image

#未完待续!!!

bademotest's People

Contributors

boai avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.