LGKnowledgeFramework 2.1.5

LGKnowledgeFramework 2.1.5

Maintained by GuiLQing, LYajun.



 
Depends on:
YJTaskMark>= 0
YJExtensions>= 0
YJBaseModule>= 0
LGAlertHUD>= 0
YJNetManager>= 0
YJPresentAnimation>= 0
YJUtils>= 0
MJExtension>= 0
Masonry>= 0
YJImageBrowser>= 0
YJCoreText>= 0
BlocksKit>= 0
 

  • By
  • LYajun

LGKnowledgeFramework

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

LGKnowledgeFramework is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'LGKnowledgeFramework'

Usage

配置:第一步
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // 网络监控
    [[YJNetMonitoring shareMonitoring] startNetMonitoring];
    // 初始化语音评测
    [[YJSpeechManager defaultManager] initEngine];
    return YES;
}

配置:第二步

// 在登录成功时,需检测网络是否可以连接外网
[[YJNetMonitoring shareMonitoring] checkNetCanUseWithComplete:nil];

调用1:直接进入知识点课件首页
/** 服务器地址 */
[LGKnowledgeManager defaultManager].apiUrl =@"http://192.168.129.129:10107/";
/** 是否只开放知识点卡片 */
//    [LGKnowledgeManager defaultManager].onlyKlgCark = YES;
/** 知识点编码 */
[LGKnowledgeManager defaultManager].klgCode = [dic objectForKey:@"NewCode"];
[LGKnowledgeManager defaultManager].klgErrorBlock = ^(NSError *error) {
        NSLog(@"%@",error.localizedDescription);
};

调用2:知识点查询弹窗
/** 服务器地址 */
[LGKnowledgeManager defaultManager].apiUrl =@"http://192.168.129.129:10107/";
/** 知识点编码 */
[LGKnowledgeManager defaultManager].klgCode = [dic objectForKey:@"NewCode"];

[[LGKnowledgeManager defaultManager] presentKnowledgeAlertViewByController:self addStudyBlock:nil];

Author

lyj, [email protected]

License

LGKnowledgeFramework is available under the MIT license. See the LICENSE file for more info.