Latest 1.0.3
Homepage https://github.com/LYajun/LGDic
License MIT
Platforms ios 8.0, requires ARC
Dependencies Masonry, MJExtension
Authors

电子词典(基于知识点课件)

LGDicLGDic

使用方式

1、集成:

pod 'LGDic'

2、配置

/** 用户ID */
@property (nonatomic,copy) NSString *userID;
/** 词典地址 */
@property (nonatomic,copy) NSString *wordUrl;
/** 直接查询的单词 */
@property (nonatomic,copy) NSString *word;
/** 请求参数 */
@property (nonatomic,strong) NSDictionary *parameters;
/** 指定请求参数中键值对value为所查询的单词的key */
@property (nonatomic,copy) NSString *wordKey;

/** 是否POST请求 */
@property (nonatomic,assign) BOOL postEnable;

/** 对于音频地址缺失域名时的设置 */
/** 音频地址(Http://IP:Port) */
@property (nonatomic,copy) NSString *voiceUrl;
/** 音频地址是否需要拼接域名 */
@property (nonatomic,assign) BOOL appendDomain;

/** 单词查询回调 */
@property (nonatomic,copy) void (^QueryBlock) (NSString *word);

3、使用

#import <LGDic/LGDic.h>

LGDicConfig().wordUrl = @"http://zh.lancooecp.com:8019/API/Resources/GetCourseware";
LGDicConfig().userID = @"110";
LGDicConfig().parameters = @{
      @"Knowledge":@"",
      @"levelCode":@""
};
LGDicConfig().wordKey = @"Knowledge";
LGDicConfig().QueryBlock = ^(NSString *word) {
      NSLog(@"搜索回调:%@",word);
};
[self.navigationController pushViewController:LGDicHomeController() animated:YES];

Latest podspec

{
    "name": "LGDic",
    "version": "1.0.3",
    "summary": "u7535u5b50u8bcdu5178uff08u57fau4e8eu77e5u8bc6u70b9u8bfeu4ef6uff09",
    "homepage": "https://github.com/LYajun/LGDic",
    "license": "MIT",
    "authors": {
        "u5218u4e9au519b": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/LYajun/LGDic.git",
        "tag": "1.0.3"
    },
    "source_files": [
        "LGDic/LGDic.h",
        "LGDic/Base/*.{h,m}",
        "LGDic/Http/*.{h,m}",
        "LGDic/Utils/*.{h,m}",
        "LGDic/Module/**/*.{h,m}"
    ],
    "resources": "LGDic/Resources/LGDic.bundle",
    "requires_arc": true,
    "dependencies": {
        "Masonry": [],
        "MJExtension": []
    }
}

Pin It on Pinterest

Share This