gpt4 book ai didi

ios - 只能在 arc 或 gc 模式下合成 weak 属性

转载 作者:技术小花猫 更新时间:2023-10-29 10:20:28 25 4
gpt4 key购买 nike

<分区>

嘿,我今天才开始 ios 编程,我遇到了这个错误。

请帮我消除这个错误

请给我推荐一些不错的 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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com