Git Product home page Git Product logo

dogtwochen / appdemo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from niyongsheng/appdemo

0.0 1.0 0.0 88.66 MB

快速创建一个App(自动填充账号密码、第三方登录(友盟)、IM(融云)、社会化分享、支付、凸起TabBar、下拉放大header、水波纹效果、新特性页面、步数距离传感器、签到、XIB适配)🎯

License: MIT License

Objective-C 99.38% Ruby 0.62%

appdemo's Introduction

(logo) AppDemo

  • 快速创建一个App。
  • Quickly Create An Application.

How About It:

  • Framework import:
    • 核心动画 CoreAnimation
    • 加载进度条 KVO
    • 音效播放 AudioToolbox
    • 凸起TabBar CALayer、UIBezierPath
    • 高斯模糊 UIBlurEffect
    • 关于页 StoreKit
    • 自动填充 Autofill iOS 12.0
    • IM+推送+分享+支付+第三方登录 UMeng+Jpush\AliPay+WeChatPay

Application Instance:

Screenshot0 Screenshot1 Screenshot2 Screenshot3
SignIn RPWD REG

Config Your App:

#define POSTURL @"http://103.278.225.222:8080/api"
#define APPID @"1438587731"
#define AppStoreURL @"https://itunes.apple.com/cn/app/id1438587731"

// 微信登录
#define WXAPPID @"wxa1ef79a68ee78dc6"
#define APPSECRET @"df13989d289c27b9703ec65ef8d519db"
// QQ登录
#define QQAPPID @"110668133"
#define QQAPPKEY @"PTC8VnALh7zKqKe"
// 支付宝支付
#define AlipayAPPID @"201806196016551"
// 极光推送
#define JPUSH_APPKEY @"dbe5990f07ed34325e34566"
#define JPUSH_CHANNEl @"App Store"
#define isProdution 1
// 融云AppKey
#define RCAPPKEY @"n19jcy5n8fz9"
// 友盟AppKey
#define UMAPPKEY @"5bd4062cf1f556edf600075f"

AutoFill Password:

1、设置 TextField ContentType

类目 UIKit ContentType Remark
用户名 TextField UserName no
密码 TextField Password no
新密码 TextField New Password no
验证码 TextField One Time Code no

2、设置 apple-app-site-association

需要一个支持HTTPS的网站用来存放,apple-app-site-association文件。 如果没有可以利用GitHub Pages挂载,步骤如下:

  • 2.1、Fork我的GitHub Pages

https://niyongsheng.github.io

  • 2.2、修改成自己的域名

3、修改apple-app-site-association文件

{
   "webcredentials":{
      // ${Prefix} Prefix, ${BundleID} Bundle ID ,如果有多个APP依次增加.
      "apps":["${Prefix}.${BundleID}"],
      "apps":["${Prefix1}.${BundleID2}"],
      "apps":["${Prefix2}.${BundleID3}"]
   }
}

4、设置 Associated Domains

6、自动生成密码

self.nameField.textContentType = UITextContentTypeUsername;
if (@available(iOS 12.0, *)) {
    self.passwordField.textContentType = UITextContentTypeNewPassword;
    self.passwordField.passwordRules = [UITextInputPasswordRules passwordRulesWithDescriptor:@"required: lower; required: upper; allowe: digit; required: [-]; minlength: 6; maxlength: 16;"];

} else {
    self.passwordField.textContentType = UITextContentTypePassword;
}

7、官方文档

https://developer.apple.com/videos/play/wwdc2017/206/ https://developer.apple.com/documentation/uikit/uitextcontenttype

Remind

  • ARC
  • iOS >= 10.0
  • iPhone \ iPad

Contribution

Reward🍭 Encourage❤️

Contact Me :octocat:

appdemo's People

Contributors

niyongsheng avatar

Watchers

 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.