All Projects → huangxuan518 → Hxbaseprojectdemo

huangxuan518 / Hxbaseprojectdemo

一个项目的基类工程

Projects that are alternatives of or similar to Hxbaseprojectdemo

Persistentstorageserializable
Swift library that makes easier to serialize the user's preferences (app's settings) with system User Defaults or Property List file on disk.
Stars: ✭ 162 (+28.57%)
Mutual labels:  userdefaults, plist
GenericLocalPersistence
GenericLocalPersistence is a clean and easy-to-use code that is useful for integrating local storage like UserDefaults, PList, Keychain.
Stars: ✭ 17 (-86.51%)
Mutual labels:  userdefaults, plist
Prephirences
Prephirences is a Swift library that provides useful protocols and convenience methods to manage application preferences, configurations and app-state. UserDefaults
Stars: ✭ 548 (+334.92%)
Mutual labels:  userdefaults, plist
Xcode Defaults
Awesome and useful Xcode defaults
Stars: ✭ 399 (+216.67%)
Mutual labels:  userdefaults
Cfpropertylist
PHP Implementation of Apple's PList (binary and xml)
Stars: ✭ 423 (+235.71%)
Mutual labels:  plist
Fontblaster
Programmatically load custom fonts into your iOS and tvOS app.
Stars: ✭ 1,000 (+693.65%)
Mutual labels:  plist
User Startup
Auto start commands when you log in (cross-platform)
Stars: ✭ 119 (-5.56%)
Mutual labels:  plist
Tbox
🎁 A glib-like multi-platform c library
Stars: ✭ 3,800 (+2915.87%)
Mutual labels:  plist
Clover Configurator Pro
A free Plist Editor with some optional facilities for Clover UEFI boot loader
Stars: ✭ 70 (-44.44%)
Mutual labels:  plist
Cordova Plugin Ios Camera Permissions
Cordova / PhoneGap Plugin Permission Settings for NSCameraUsageDescription and NSPhotoLibraryUsageDescription in iOS 11 by adding a declaration to the Info.plist file, see:
Stars: ✭ 34 (-73.02%)
Mutual labels:  plist
Swinjectpropertyloader
Swinject extension to load property values from resources
Stars: ✭ 24 (-80.95%)
Mutual labels:  plist
Default
Modern interface to UserDefaults + Codable support
Stars: ✭ 466 (+269.84%)
Mutual labels:  userdefaults
Jsonj
A fluent Java API for manipulating json data structures
Stars: ✭ 42 (-66.67%)
Mutual labels:  plist
Userdefaultsstore
Why not use UserDefaults to store Codable objects 😉
Stars: ✭ 416 (+230.16%)
Mutual labels:  userdefaults
Ecno
Ecno is a task state manager built on top of UserDefaults in pure Swift 4.
Stars: ✭ 92 (-26.98%)
Mutual labels:  userdefaults
Securepropertystorage
Helps you define secure storages for your properties using Swift property wrappers.
Stars: ✭ 379 (+200.79%)
Mutual labels:  userdefaults
Countries States Cities Database
🌍 World countries, states, regions, provinces, cities, towns in JSON, SQL, XML, PLIST, YAML, and CSV. All Countries, States, Cities with ISO2, ISO3, Country Code, Phone Code, Capital, Native Language, Timezones, Latitude, Longitude, Region, Subregion, Flag Emoji, and Currency. #countries #states #cities
Stars: ✭ 1,130 (+796.83%)
Mutual labels:  plist
Defaults
Swifty and modern UserDefaults
Stars: ✭ 734 (+482.54%)
Mutual labels:  userdefaults
St3 Binaryplist
Automatically converts binary property lists to XML when opened and writes them back out to binary when saved.
Stars: ✭ 35 (-72.22%)
Mutual labels:  plist
Persistencekit
Store and retrieve Codable objects to various persistence layers, in a couple lines of code!
Stars: ✭ 121 (-3.97%)
Mutual labels:  userdefaults

HXBaseProjectDemo 如果对你有一点点帮助,请给一颗★,你的支持是对我的最大鼓励!推荐工具 iOS打包机器人 https://github.com/huangxuan518/HXPackRobot

一个项目的基类工程,使用此工程可以为您省去很多前期搭框架时间!

效果展示

image image image

示例

HXHomeViewController

HXAddImageViewController

工程包含第三方

AFNetworking (3.0.4) //网络

Qiniu (7.1.4) //七牛存储 HappyDNS (0.3.10) //七牛依赖

MJRefresh (3.1.12) //上下拉刷新

ReactiveCocoa (2.5) //RAC 是一个 iOS 中的函数式响应式编程框架

SDWebImage (3.8.2) //图片显示

SVProgressHUD (2.0.4) //提示 请勿更新最新版,最新版颜色设置不起作用

说明

配置都在Config文件夹里面

基础类都在Base文件夹里面

常用的类和扩展都在Public文件夹里面

Config

AppConfig //App的一些常用参数配置

RequestManager //网络请求在此添加

Base

界面基类

BaseTabBarController

BaseNavigationController

BaseViewController

BaseTableViewController

BaseCollectionViewController

Cell基类

BaseTableViewCell

BaseCollectionViewCell

模型基类

BaseModel

Public

相机/相册

HXCutPhotoViewController //图片裁剪

HXPhotoPreviewViewController //图片预览

HXPhotosViewController //全自定义相机相册

Define

PublicDefine //宏

Extension

UIView+Helpers //UIView扩展

UIImage+Extension //UIImage扩展

NSString+Extension //字符串扩展

UITabBar+Badge //TabBar小红点扩展

Asset

AssetHelper //相册

UploadImages

UploadManager //数据上传

DownloadImages

DownloadImageManager //图片下载

Supporting Files

Info.plist

TabBarConfigure.plist

PrefixHeader.pch

InfoPlist.strings

使用说明

整体色调修改AppConfig.h,改变整体界面色调很简单,想怎么换就怎么换

image

标签控制器对应的界面请在TabBarConfigure.plist里面添加和更改

image

按照给出的样式所示格式,添加标签,有几个就添加几个,标签控制器的高度可以修改代码

image

其中50就是默认高度,你需要多高就更改多大

标签里面的图标和文字的相关属性见代码

image

//设置指定tabar 小红点的值

image

如果标签不需要显示数值,只需要显示一个小红点,可以通过下面2个方法控制

//显示小红点 没有数值

image

//隐藏小红点 没有数值

image

如何在其他界面获取BaseTabBarController,可以通过

BaseTabBarController *baseTabBar = ((AppDelegate *)[UIApplication sharedApplication].delegate).baseTabBar获取,然后调用设置小红点的方法

导航样式请在BaseNavigationController里面修改

image

push是否隐藏标签在方法

image 里做了处理,所以不需要push的时候再加显示或隐藏的处理了,如果需要自己单独处理可以屏蔽此代码

BaseTableViewController使用,记得添加头文件

image

数据模型继承自BaseModel就可以直接保存

//保存

- (void)saveData:(id)obj {

      NSData *archiveCarPriceData = [NSKeyedArchiver archivedDataWithRootObject:obj];
      NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
      [userDefaults setObject:archiveCarPriceData forKey:@"someKey"];
      [userDefaults synchronize];
}

//获取

NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; id obj = [NSKeyedUnarchiver unarchiveObjectWithData:[userDefaults objectForKey:@"someKey"]] ;

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].