Getting started with the official website: http://open.weixin.qq.com/document/gettingstart/ios /;
In fact, it is already very detailed. The following are my notes:
1. if "URL scheme" is not added to the Application id you have registered, "Return (NULL)" is returned when sending is completed, and the client is not automatically exited because the Application ID is configured, the program is automatically exited;
2. the source code of the official SDK Sample Demo needs to be debugged on the real machine, and the simulator has no response;
3. The development manual is very detailed. Share it with you and your friends:
// Req. scene = WXSceneTimeline; // select to send to the circle of friends. The default value is WXSceneSession, which is sent to the session
4. Check whether the isWXAppInstalled has been installed by the user + (BOOL). If YES is not installed, NO is returned. Determine whether the current version supports OpenApi
+ (BOOL) isWXAppSupportApi
5. sendReq :( BaseReq *)Req
Send the request to wait for onResp to be returned
The interface that will be switched to after the function is called. Third-party applications are waiting to return onResp. OnResp will be called after asynchronous processing is complete. Possible sending requests include SendMessageToWXReq and SendAuthReq.
Conversely, sendResp :( BaseResp *)Resp
Receive the onReq request, send the corresponding response to it, and switch to the interface
The interface that will be switched to after the function is called. A third-party application receives an onReq request and processes the request asynchronously. This function must be called after completion. GetMessageFromWXResp and ShowMessageFromWXResp may be sent.
6. For details about the sent Content Code, refer to the DEMO.