zoukankan      html  css  js  c++  java
  • 新浪微博客户端(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";
  • 相关阅读:
    记一次centos 服务器中毒事件
    heatmap
    this
    购物车
    带标签的无缝轮播
    无缝轮播
    图片滚动百分百宽度
    选择排序
    冒泡排序
    tab标签页
  • 原文地址:https://www.cnblogs.com/yongdaimi/p/6139024.html
Copyright © 2011-2022 走看看