我正在使用ARC专门为iOS 5开发.应该IBOutlets UIView(和子类)是strong或weak?
下列:
@property (nonatomic, weak) IBOutlet UIButton *button;
Run Code Online (Sandbox Code Playgroud)
将摆脱所有这一切:
- (void)viewDidUnload
{
// ...
self.button = nil;
// ...
}
Run Code Online (Sandbox Code Playgroud)
这样做有什么问题吗?模板正在使用strong,当从"Interface Builder"编辑器直接连接到标题时创建的自动生成属性,但为什么?在UIViewController已经有一个strong到其基准view保留其子视图.
cocoa-touch objective-c interface-builder ios automatic-ref-counting
我的问题是,这是否可能,如果是这样,你将如何处理这项任务?
有没有人知道已经使用此功能的应用程序,或者在哪里获得一些示例代码?
另外,如果我自己实现这一点而不太了解该主题,那么你对完成它需要多长时间的估计是什么?
还有一点需要注意,因为它可能会使事情变得更复杂:目标表在默认情况下处于editmode状态,因此用户可以重新排列单元格(使用附件视图中的标准重新排序控件),这些已经放在那里.
编辑:
我只是尝试在我的帖子中包含概念图像的屏幕截图.图像左侧显示一个表格,右侧显示灰色下降区域.我的客户说他也在其他应用程序上看到了这一点,因此必须有一些我不知道的ui元素.
我没有在开发者库中找到关于这样一个下降区域的任何内容,所以希望你们中的一个可以给我指示或清理.
我正在使用iOS应用程序,让用户使用他的Facebook帐户登录.我们用户登录后我想推送填充了用户数据的配置文件ViewController; 抱歉这个漫长的初步.
问题是当我使用instantiateViewControllerWithIdentifier方法启动配置文件视图控制器时.它的出口组件都是零
这是我面临问题的代码
- (void)loginViewFetchedUserInfo:(FBLoginView *)loginView
user:(id<FBGraphUser>)user {
profileViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"CGProfileViewController"];
profileViewController.fbProfilePictureView.profileID=user.objectID;
profileViewController.nameLabel.text=user.name;
profileViewController.locationLabel.text=user.location.location.city;
// [self presentViewController:profileViewController animated:YES completion:nil]
Run Code Online (Sandbox Code Playgroud)
}

我的代码有什么问题吗?我该怎么办 ? 提前感谢