上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 38 下一页

2022年4月14日

macOS开发 提示窗NSAlert的用法(持续更新中)

摘要: Mac开发-如何弹出提示窗口 NSAlert *alert = [[NSAlert alloc] init]; alert.messageText = @"主标题"; alert.informativeText = @“我来了”t;//内容 [alert addButtonWithTitle:@"确 阅读全文

posted @ 2022-04-14 09:39 高彰 阅读(1856) 评论(1) 推荐(0)

2022年4月13日

iOS macOS xib 纯代码动态修改UILabel位置 IOS Ui控件 修改位置和尺寸,代码添加控件

摘要: 这里鸣谢https://blog.csdn.net/thanklife/article/details/73441547 //通过 //frame.size //bounds.size //属性可以修改控件的尺寸 // 下面代码是错误的,OC语法规定:不允许直接修改对象的结构体属性的成员 self 阅读全文

posted @ 2022-04-13 17:57 高彰 阅读(218) 评论(0) 推荐(0)

2022年4月9日

iOS tableview 背景变透明

摘要: // 这里使用编写一个简单地例子 // iTableView为UITableView的一个实例j // Cell为自定义UITableViewCell的一个实例 // 将tableView背景色设置为透明 iTableView.backgroundView = nil; iTableView.bac 阅读全文

posted @ 2022-04-09 05:32 高彰 阅读(487) 评论(0) 推荐(0)

iOS 字典中取字典,字典中取数组,字典中取字符串,字典套字典中取字典,字典套字典中取数组,字典套字典中取字符串

摘要: //字典中取字典 NSDictionary *result1 = [dic objectForKey:@"result"]; //字典中取数组 NSArray *arrlist1 = [dic objectForKey:@"arr"]; //字典中取字符串 NSString *str1 = [dic 阅读全文

posted @ 2022-04-09 03:38 高彰 阅读(170) 评论(0) 推荐(0)

2022年4月1日

SourceTree使用方法(拉取、提交、推送、获取、冲突解决、分支管理)

摘要: 概念 丢弃:放弃未暂缓区的所有修改(工作区中的修改不会添加到版本控制,就是修改的东西不想提交,就直接丢弃)移除:直接删除文件克隆(clone):从远程仓库URL加载创建一个与远程仓库一样的本地仓库提交(commit):将暂存文件上传到本地仓库(我们在Finder中对本地仓库做修改后一般都得先提交一次 阅读全文

posted @ 2022-04-01 09:13 高彰 阅读(2503) 评论(0) 推荐(0)

2022年3月25日

iOS UISearchBar搜索框

摘要: #import "ViewController.h" @interface ViewController ()<UISearchBarDelegate> /** 搜索框 */ @property (nonatomic, weak) UISearchBar *searchBar; @end @impl 阅读全文

posted @ 2022-03-25 15:53 高彰 阅读(106) 评论(0) 推荐(0)

2022年3月10日

macOS开发 NSTextField控件 macOS中并没有 UILable ,也没有 NSLabel

摘要: macOS中的 label 实际上是 NSTextField,并将editable = NO; 来实现显示效果。这是不是和 iOS 中的UITextView 很像呢? -(void)viewDidLoad { [super viewDidLoad]; NSTextField *lbl = [[NST 阅读全文

posted @ 2022-03-10 15:26 高彰 阅读(660) 评论(0) 推荐(0)

macOS开发 设置鼠标放在控件上是否有小手

摘要: 1.ViewController.m引入头文件 #import "ViewController.h" #import "VC1.h" 2.ViewController.m控件调用,用NSView举例 - (void)viewDidLoad { [super viewDidLoad]; VC1 *vi 阅读全文

posted @ 2022-03-10 14:37 高彰 阅读(190) 评论(0) 推荐(0)

2022年3月9日

macOS 预览和截屏 关于上架app store的有效截图尺寸

摘要: 说一堆还不如一张图明了 上图 宽 x 高 单位是像素 阅读全文

posted @ 2022-03-09 13:51 高彰 阅读(226) 评论(0) 推荐(0)

macOS WKwebview的简单实现

摘要: 1.最简单的,只显示内容没有交互。 复制代码即可运行,可拖拽窗口。 #import "ViewController.h" #import <WebKit/WebKit.h> @interface ViewController () @property (nonatomic,strong)WKWebV 阅读全文

posted @ 2022-03-09 10:43 高彰 阅读(1142) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 38 下一页

导航