码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-05-02 16:20:41      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

[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。

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

标签:

原文地址:http://www.cnblogs.com/tusiji7/p/4472033.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!