新浪微博客户端(54)-代码重构-将宏定义修改为常量

 

DJConstantValue.h

#import <Foundation/Foundation.h>


/* App */
extern NSString * const DJAppId;
extern NSString * const DJAppSecret;
extern NSString * const DJAppRedirectUri;


/* 通知 */

// 点击Emotion表情
extern NSString * const DJEmotionDidSelectedNotification;
extern NSString * const DJEmotionDidSelctedEmotionKey;

// 删除Emotion表情
extern NSString * const DJEmotionDidDeletedNotification;

DJConstantValue.m

#import <Foundation/Foundation.h>


/* App */
NSString * const DJAppId = @"249054863";
NSString * const DJAppSecret = @"71d5b761bac9f377af3b938f6d89ba85";
NSString * const DJAppRedirectUri = @"https://www.baidu.com";


/* 通知 */

// 点击Emotion表情
NSString * const DJEmotionDidSelectedNotification = @"DJEmotionDidSelctedNotification";
NSString * const DJEmotionDidSelctedEmotionKey = @"emotion";

// 删除Emotion表情
NSString * const DJEmotionDidDeletedNotification = @"DJEmotionDidDeletedNotification";

 

posted @ 2016-12-06 20:31  夜行过客  阅读(326)  评论(0编辑  收藏  举报