如何在iOS 12上挂接多任务

时间:2019-03-24 16:35:54

标签: ios jailbreak theos cydia tweak

嗨,我要在iOS上创建一个经过调整的自定义多任务,但找不到合适的标题。

  

我的代码:

  class Question extends React.Component
      constructor(props){
          super(props);
          this.questions =  [
          {
            question: "Who is the president of America?",
            answers: {
              a: "Buhari",
              b: "Putin",
              c: "Trump"
            },

          }         
          ];
          this.state = {
              question : [],
          };
      }

      handleQuestion(){ 
        this.setState({
        question: this.questions
      });    
      }
      render(){    
        return (    
            <div className = "container">
            <button type="button" onClick={()=>this.handleQuestion()}>
              Show Question
            </button>   

            <ul>
              {this.state.question.map((data,i)=>(

                  <li key={i}>{data.question}       
                    <div>a : {data.answers.a}</div>
                    <div>b : {data.answers.b}</div>
                    <div>c : {data.answers.c}</div>
                  </li>

                ))
               }
            </ul> 
         </div> 
       ); 
      }
   }

     export default App;

这是行不通的...

我现在只想在激活多任务时显示UIAlert。

寻求帮助

0 个答案:

没有答案