博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年9月8日

摘要: 转载地址:http://blog.sina.com.cn/s/blog_4adf31ea0100ts31.html如果编译B Class的时候出现下面的错误:expected specifier-qualifier-list before ‘A Class’当出现这种错误的时候说明A Class没有被import,如果已经import这个类了,说明A Class和B Class 之间有Circle引用。也就是说A Class import B Class,BClass import了 A Class。解决的办法是:在A Class.h中用@Class BClass;,然后在AClass.m中# 阅读全文

posted @ 2011-09-08 22:46 星尘的天空 阅读(516) 评论(0) 推荐(0) 编辑

摘要: 图片以某一点为中心放大。参考代码:m_imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"诚实守信-华盛顿砍树9.jpg"]]; m_imageView.center = self.view.center; m_imageView.frame = CGRectMake(502, 384, 0, 0);//ipad中的横屏幕模式 [self.view addSubview:m_imageView];另一个按钮的单击时间,实现以某一点为中心进行方法参考代码:-(IBAction)GoToInd 阅读全文

posted @ 2011-09-08 17:02 星尘的天空 阅读(246) 评论(0) 推荐(0) 编辑