Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
d2cd8a0
更新blog数据结构增加版本号
chenguandong Apr 2, 2015
a16e744
Blog+CoreData+Version
chenguandong Apr 3, 2015
121b156
blog增加一个数据
chenguandong Apr 3, 2015
14899f7
更改blog版本号
chenguandong Apr 3, 2015
426a636
add blog
chenguandong Apr 3, 2015
07b4b96
- blog
chenguandong Apr 3, 2015
8ea4d05
updata blog count
chenguandong Apr 4, 2015
afb1e12
修改持久化博客逻辑
chenguandong Apr 4, 2015
9581d81
增加收藏
chenguandong Apr 5, 2015
dab533e
blog TableView+CoreData
chenguandong Apr 5, 2015
d64db2d
修改收藏
chenguandong Apr 6, 2015
aca0926
跟新http数据
chenguandong Apr 6, 2015
28ddfb6
update version.son version
chenguandong Apr 6, 2015
c67b5ae
web+video
chenguandong Apr 6, 2015
04fdce7
update viersion.json
chenguandong Apr 6, 2015
18c2f4e
update version error num
chenguandong Apr 6, 2015
62dcf3a
增加收藏页面
chenguandong Apr 6, 2015
dd5166b
add email supput and fix favorite bug
chenguandong Apr 6, 2015
caa07f4
pod updata
chenguandong Apr 6, 2015
db5886d
集成Jpush
chenguandong Apr 8, 2015
4c175e6
add iRate 评分
chenguandong Apr 9, 2015
ac760bf
增加开源许可界面
chenguandong Apr 9, 2015
840655f
pod update
chenguandong Apr 9, 2015
8f5c3a9
统一Cell样式
chenguandong Apr 9, 2015
b909552
优化性能
chenguandong Apr 9, 2015
f8aa1c4
统一Coll 命名
chenguandong Apr 9, 2015
11b3d81
修复删除收藏bug
chenguandong Apr 9, 2015
7a98d72
update icon 欢迎界面 网络BUG
chenguandong Apr 10, 2015
4c6b352
加入开机动画
chenguandong Apr 10, 2015
05fbe19
修改开源许可和关于的跳转问题
chenguandong Apr 10, 2015
de03b55
修改收藏图标
chenguandong Apr 10, 2015
443f213
iOSStudy 1.1.0 版本正式提交审核
chenguandong Apr 10, 2015
23faa12
update 证书
chenguandong Apr 12, 2015
3ec6025
更新软件说明
chenguandong Apr 12, 2015
b3d323c
add MD image
chenguandong Apr 12, 2015
8362907
增加内容排序 图片圆角 视频内容
chenguandong May 3, 2015
8d7a76c
update video date
chenguandong May 3, 2015
b17e92c
video update
chenguandong May 3, 2015
9102bfb
第三次驳回
chenguandong May 12, 2015
88c59ed
收藏 和取消收藏 国际化
chenguandong May 12, 2015
65407d0
修复 iOS7 下 Cell imageView bug
chenguandong May 12, 2015
375af2f
add blog and webs
chenguandong Jun 3, 2015
0fa177a
add blog web video
chenguandong Jun 3, 2015
7664f93
add blog web fix video error
chenguandong Jun 15, 2015
88e4012
增加廖雪峰的技术博客
chenguandong Jun 16, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 28 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,28 @@
# iOSStudy
iOSStudy是一个开源的iOS应用内容是致力于帮助iOS开发者找到适合自己的学习资源

![Alt text] (https://raw.githubusercontent.com/chenguandong/iOSStudy/CoreDataJoin/iOSStudy/iOSStudy/%20Resource/images/appicon/icon_120.png)
_____________________________________________
# 关于iOSStudy
<pre>
iOSStudy 灵感来源于作者自学iOS开发的经验,收藏了一些博客视频网站等内容,希望可以帮助初学者找到更好的学习资源,作者也会不断的更新完善软件和内容,如果本软件对您的学习有所帮助欢迎到评分界面深深地点个赞,您的支持将是我前进的动力↖(^ω^)↗
</pre>
# 下一步计划
<pre>
1,加入开源软件推荐模块
2,加入iCloud对收藏的支持
</pre>

# 官方博客
<pre>http://iosstudy.lofter.com/</pre>

# 特别感谢

<pre>
李辉 QQ:949843687 对该软件图标设计与制作
龚凡凡 QQ:825244415 对该软件的技术支持
</pre>

# 联系我
<pre>
邮箱: chenguandong@163.com
QQ: 787725000
</pre>
26 changes: 26 additions & 0 deletions iOSStudy/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Pods/
175 changes: 175 additions & 0 deletions iOSStudy/APService.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
//
// APService.h
// APService
//
// Created by JPush on 12-8-15.
// Copyright (c) 2012年 HXHG. All rights reserved.
// Version: 1.8.3

@class CLRegion;
@class UILocalNotification;

extern NSString *const kJPFNetworkDidSetupNotification; // 建立连接
extern NSString *const kJPFNetworkDidCloseNotification; // 关闭连接
extern NSString *const kJPFNetworkDidRegisterNotification; // 注册成功
extern NSString *const kJPFNetworkDidLoginNotification; // 登录成功
extern NSString *const
kJPFNetworkDidReceiveMessageNotification; // 收到消息(非APNS)
extern NSString *const kJPFServiceErrorNotification; // 错误提示

@class CLLocation;
@interface APService : NSObject

#pragma - mark 基本功能
// 以下四个接口是必须调用的
+ (void)setupWithOption:(NSDictionary *)launchingOption; // 初始化
+ (void)registerForRemoteNotificationTypes:(NSUInteger)types
categories:(NSSet *)categories; // 注册APNS类型
+ (void)registerDeviceToken:(NSData *)deviceToken; // 向服务器上报Device Token
+ (void)handleRemoteNotification:(NSDictionary *)
remoteInfo; // 处理收到的APNS消息,向服务器上报收到APNS消息

// 下面的接口是可选的
// 设置标签和(或)别名(若参数为nil,则忽略;若是空对象,则清空;详情请参考文档:http://docs.jpush.cn/pages/viewpage.action?pageId=3309913)
+ (void)setTags:(NSSet *)tags
alias:(NSString *)alias
callbackSelector:(SEL)cbSelector
target:(id)theTarget;
+ (void)setTags:(NSSet *)tags
alias:(NSString *)alias
callbackSelector:(SEL)cbSelector
object:(id)theTarget;
+ (void)setTags:(NSSet *)tags
callbackSelector:(SEL)cbSelector
object:(id)theTarget;
+ (void)setAlias:(NSString *)alias
callbackSelector:(SEL)cbSelector
object:(id)theTarget;
// 用于过滤出正确可用的tags,如果总数量超出最大限制则返回最大数量的靠前的可用tags
+ (NSSet *)filterValidTags:(NSSet *)tags;

#pragma - mark 上报日志
/**
* 记录页面停留时间功能。
* startLogPageView和stopLogPageView为自动计算停留时间
* beginLogPageView为手动自己输入停留时间
*
* @param pageName 页面名称
* @param seconds 页面停留时间
*/
+ (void)startLogPageView:(NSString *)pageName;
+ (void)stopLogPageView:(NSString *)pageName;
+ (void)beginLogPageView:(NSString *)pageName duration:(int)seconds;

/**
* 开启Crash日志收集, 默认是关闭状态.
*/
+ (void)crashLogON;

/**
* 地理位置设置
* 为了更精确的统计用户地理位置,可以调用此方法传入经纬度信息
* 需要链接 CoreLocation.framework 并且 #import <CoreLocation/CoreLocation.h>
* @param latitude 纬度.
* @param longitude 经度.
* @param location 直接传递CLLocation *型的地理信息
*/
+ (void)setLatitude:(double)latitude longitude:(double)longitude;
+ (void)setLocation:(CLLocation *)location;

#pragma - mark 本地通知
/**
* 本地推送,最多支持64个
* @param fireDate 本地推送触发的时间
* @param alertBody 本地推送需要显示的内容
* @param badge 角标的数字。如果不需要改变角标传-1
* @param alertAction 弹框的按钮显示的内容(IOS 8默认为"打开",其他默认为"启动")
* @param notificationKey 本地推送标示符
* @param userInfo 自定义参数,可以用来标识推送和增加附加信息
* @param soundName 自定义通知声音,设置为nil为默认声音

* IOS8新参数
* @param region 自定义参数
* @param regionTriggersOnce 自定义参数
* @param category 自定义参数
*/
+ (UILocalNotification *)setLocalNotification:(NSDate *)fireDate
alertBody:(NSString *)alertBody
badge:(int)badge
alertAction:(NSString *)alertAction
identifierKey:(NSString *)notificationKey
userInfo:(NSDictionary *)userInfo
soundName:(NSString *)soundName;

+ (UILocalNotification *)setLocalNotification:(NSDate *)fireDate
alertBody:(NSString *)alertBody
badge:(int)badge
alertAction:(NSString *)alertAction
identifierKey:(NSString *)notificationKey
userInfo:(NSDictionary *)userInfo
soundName:(NSString *)soundName
region:(CLRegion *)region
regionTriggersOnce:(BOOL)regionTriggersOnce
category:(NSString *)category
NS_AVAILABLE_IOS(8_0);

/**
* 本地推送在前台推送。默认App在前台运行时不会进行弹窗,在程序接收通知调用此接口可实现指定的推送弹窗。
* @param notification 本地推送对象
* @param notificationKey 需要前台显示的本地推送通知的标示符
*/
+ (void)showLocalNotificationAtFront:(UILocalNotification *)notification
identifierKey:(NSString *)notificationKey;
/**
* 删除本地推送
* @param notificationKey 本地推送标示符
* @param myUILocalNotification 本地推送对象
*/
+ (void)deleteLocalNotificationWithIdentifierKey:(NSString *)notificationKey;
+ (void)deleteLocalNotification:(UILocalNotification *)localNotification;

/**
* 获取指定通知
* @param notificationKey 本地推送标示符
* @return 本地推送对象数组,[array count]为0时表示没找到
*/
+ (NSArray *)findLocalNotificationWithIdentifier:(NSString *)notificationKey;

/**
* 清除所有本地推送对象
*/
+ (void)clearAllLocalNotifications;

#pragma - mark 设置Badge
/**
* set setBadge
* @param value 设置JPush服务器的badge的值
* 本地仍须调用UIApplication:setApplicationIconBadgeNumber函数,来设置脚标
*/
+ (BOOL)setBadge:(NSInteger)value;
/**
* set setBadge
* @param value 清除JPush服务器对badge值的设定.
* 本地仍须调用UIApplication:setApplicationIconBadgeNumber函数,来设置脚标
*/

+ (void)resetBadge;

/**
* get RegistrationID
*/
+ (NSString *)registrationID;

#pragma - mark 打印日志信息配置
/**
* setDebugMode获取更多的Log信息
* 开发过程中建议开启DebugMode
*
* setLogOFF关闭除了错误信息外的所有Log
* 发布时建议开启LogOFF用于节省性能开销
*
* 默认为不开启DebugLog,只显示基本的信息
*/
+ (void)setDebugMode;
+ (void)setLogOFF;
@end
2 changes: 1 addition & 1 deletion iOSStudy/Base/BaseViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <UIKit/UIKit.h>

#import "NotificationCenterConstants.h"
@interface BaseViewController : UIViewController

@end
6 changes: 6 additions & 0 deletions iOSStudy/Base/BaseViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,24 @@
//

#import "BaseViewController.h"
#import "Constants .h"

@interface BaseViewController ()

@end

@implementation BaseViewController


- (void)viewDidLoad {
[super viewDidLoad];

// Do any additional setup after loading the view.

}



-(void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:YES];

Expand Down
2 changes: 1 addition & 1 deletion iOSStudy/Bean/FavouriteBean.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ typedef NS_ENUM(NSInteger, FAVOURITE_TYPE) {
*/
@property(nonatomic,copy)NSString *url;
/**
* 类型 1 博客 2 网站 3 视频
* 类型 1 收藏博客 2 收藏网站 3 收藏视频 11,持久化博客 22,持久化网站 33,持久化视频
*/
@property(nonatomic,copy)NSString* type;
@end
2 changes: 2 additions & 0 deletions iOSStudy/Bean/blogBean/BlogBean.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@
* 博客地址
*/
@property(nonatomic,copy)NSString*date;

@property(nonatomic,copy)NSString*version;
@end
1 change: 1 addition & 0 deletions iOSStudy/Bean/blogBean/BlogBean.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey{


return @{
@"version":@"version",
@"name": @"name",
@"title": @"title",
@"subTitle": @"subTitle",
Expand Down
15 changes: 15 additions & 0 deletions iOSStudy/Bean/blogBean/BlogJsonBean.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// BlogJsonBean.h
// iOSStudy
//
// Created by chenguandong on 15/4/2.
// Copyright (c) 2015年 chenguandong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MTLModel.h>
#import <MTLJSONAdapter.h>
@interface BlogJsonBean : MTLModel<MTLJSONSerializing>
@property(nonatomic,copy)NSString *version;
@property(nonatomic,strong)NSArray *bloglists;
@end
22 changes: 22 additions & 0 deletions iOSStudy/Bean/blogBean/BlogJsonBean.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// BlogJsonBean.m
// iOSStudy
//
// Created by chenguandong on 15/4/2.
// Copyright (c) 2015年 chenguandong. All rights reserved.
//

#import "BlogJsonBean.h"

@implementation BlogJsonBean

+ (NSDictionary *)JSONKeyPathsByPropertyKey{


return @{
@"version": @"version",
@"bloglists": @"bloglists"
};
}

@end
23 changes: 23 additions & 0 deletions iOSStudy/Bean/versionBean/VersionBean.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//
// VersionBean.h
// iOSStudy
//
// Created by chenguandong on 15/4/2.
// Copyright (c) 2015年 chenguandong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MTLModel.h>
#import <MTLJSONAdapter.h>
@interface VersionBean : MTLModel<MTLJSONSerializing>
/**
* 当前请求地址的URL
*/
@property(nonatomic,copy)NSString *url;

/**
* 当前请求地址URL版本号
*/
@property(nonatomic,copy)NSString *urlVersion;

@end
24 changes: 24 additions & 0 deletions iOSStudy/Bean/versionBean/VersionBean.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// VersionBean.m
// iOSStudy
//
// Created by chenguandong on 15/4/2.
// Copyright (c) 2015年 chenguandong. All rights reserved.
//

#import "VersionBean.h"

@implementation VersionBean


+ (NSDictionary *)JSONKeyPathsByPropertyKey{


return @{
@"url": @"url",
@"urlVersion": @"urlVersion"
};
}


@end
Loading