Documentation
ZegoSuperBoard Super Board
Documentation
Demo APP
SDK Center
API Center
FAQ
Code Market
Console
Sign Up
Log In
中文站 English
  • Documentation
  • Super Board
  • Sample app
Sample code
Download
  • Download

Here we provide you with a sample application to experience the ZEGOCLOUD's Super Board, and the following describes how to run the sample code.

Prerequisites

  • Xcode 16.0 or later.

  • An iOS device or iOS Simulator that is running on iOS 12.0 or later and supports audio and video. We recommend you use a real device.

  • The iOS device is connected to the internet.

  • Contact the ZEGOCLOUD Technical support to get the AppID and AppSecret for SDK integration.

  • By default, the features of this product are not enabled. To use these features, you will need to contact ZEGOCLOUD Technical Support to enable them first.
  • For SDK version 2.3.0 or later, you can also use Tokens for authentication. To upgrade the authentication mode, refer to the Upgrade the authentication mode from AppSign to Token.

Run the sample code

  1. Open AppStore to download the Xcode.

/Pics/iOS/GoClass/appstore-xcode.png

  1. In Xcode, select the File > Open, open the ZegoSuperBoardDemo.xcworkspace file in the extracted sample code package.

/Pics/iOS/GoClass/xcode-open-file.png

/Pics/iOS/WhiteboardExample/whiteboard_demo_dir_workspace.png

  1. In Xcode, select the Preferences, click the Accounts tab, click the "+" button, then select Apple ID, and click Continue. And then, enter your Apple ID and Password to log in.

/Pics/iOS/GoClass/xcode-account.png

/Pics/iOS/GoClass/xcode-login-apple-id.png

  1. Modify the Bundle Identifier and certificate.

a. In Xcode, Select the ZegoSuperBoardDemo project.

/Pics/iOS/WhiteboardExample/whiteboard_demo_target.png

b. Select the target project, click the Signing & Capabilities tab, change the Bundle Identifier configuration and select your own developer certificate in the Team.

/Pics/iOS/WhiteboardExample/whiteboard_team_cert.png

  1. Modify the KeyCenter.m file with the AppID and AppSecret that you get in the Prerequisites.
// Provide separate App IDs for two regions: Chinese Mainland and Overseas
// If no regional distinction is needed, use the same App ID for both

// Chinese Mainland environment
static unsigned int kAppID = <#YOUR_APP_ID#>;
static NSString* kAppSecret = @"<#YOUR_APP_SECRET#>";

// Other region environment.
static unsigned int kAbroadAppID = <#YOUR_APP_ID#>;
static NSString* kAbroadAppSecret = @"<#YOUR_APP_SECRET#>";
  1. Connect the iOS device to your computer, and select the iOS device in Xcode.

/Pics/iOS/WhiteboardExample/whiteboard_demo_generic_arch.png

/Pics/iOS/WhiteboardExample/whiteboard_demo_run_device.png

  1. Navigate to the folder where the Podfile file locates, and run the pod install command in the terminal.

  2. Click the Build button to run the sample code and experience the Super Board service.

/Pics/iOS/WhiteboardExample/whiteboard_demo_run_btn.png

Page Directory
  • Free trial
  • 提交工单
    咨询集成、功能及报价等问题
    电话咨询
    400 1006 604
    Get Consulting
    Scan Wechat QR code