首页 > 其他 > 详细

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

时间:2015-05-02 16:19:46      阅读:95      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!