ios – 仅在arc或gc模式中允许的弱性质的合成

前端之家收集整理的这篇文章主要介绍了ios – 仅在arc或gc模式中允许的弱性质的合成前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
嗨,我只是开始ios编程今天,我正在面对这个错误.

plz帮我删除这个错误

plz建议我一些很好的ios开发人员教程

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view,typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end


#import <UIKit/UIKit.h>

@interface ViewController : UIViewController
@property (weak,nonatomic) IBOutlet UITextField *txtUsername;
@property (weak,nonatomic) IBOutlet UITextField *txtPassword;
- (IBAction)loginClicked:(id)sender;
- (IBAction)backgroundClick:(id)sender;


@end

解决方法

如果你刚刚开始,你应该只是 enable ARC.它会节省你很多的头痛,它会解决这个问题.
原文链接:https://www.f2er.com/iOS/337138.html

猜你在找的iOS相关文章