关于Xcode的一些方法-15-05-01

[string substringToIndex:x]-----取出string中在第x位之前的字符。
[string substringFromIndex:x] ------取出string中第x位之后的字符。

 [self.optionView.subviewsmakeObjectsPerformSelector:@selector(removeFromSuperview)]
使subviews中所有对象调用removeFromSuperview方法。


    [selfperformSelector:@selector(nextQuestion) withObject:nilafterDelay:0.5];
0.5秒后执行[self nextQuestion];



button.currentTitle-----返回按钮button对象的当前文字。


   [UIViewanimateWithDuration:0.25 animations:^{
     code1;
}completion:^(BOOL finished) {
        code2}]------动画执行code1代码段0.5秒后执行code2。

posted on 2015-05-02 15:33  tusiji  阅读(115)  评论(0编辑  收藏  举报

导航