import React, { Component } from 'react'; import { Spinner } from 'react-bootstrap'; class MyComponent extends Component { constructor(props) { super(props); this.state = { loading: true, data: null }; } componentDidMount() { // 发起API调用 fetch('https://api.example.com/data') ...
使用方法 使图层覆盖在应用图标上方,大小为app图标的bounds -(ICSectorProgressView *)sectorView { ...