-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
面试题整理 #17
Comments
快手 视频面试 2 3 @interface DogTest : NSObject
+ (void)test;
- (void)test;
@end
@implementation DogTest
- (void)test {
NSLog(@"TEST");
}
@end
@interface NSObject (Test)
+ (void)test;
- (void)test;
@end
@implementation NSObject (Test)
- (void)test {
NSLog(@"TEST");
}
@end
int main(int argc, const char * argv[]) {
@autoreleasepool {
//1
[NSObject test];
[[NSObject new] test];
//2
//[DogTest test];
//[[DogTest new] test];
}
return 0;
}
4
func test1() {
DispatchQueue.main.sync {
print("1")
}
}
func test2() {
print("1")
let que = DispatchQueue.init(label: "thread")
que.async {
print("2")
DispatchQueue.main.sync {
print("3")
que.sync {
print("4")
}
}
print("5")
}
print("6")
que.async {
print("7")
}
print("8")
} 5 给定一个正整数N, 请输出N!的结果末尾包含0的个数 好未来电话面试 介绍ios遍历方法,for in遍历的时候在里面增加一个元素会怎么样,删除一个元素会怎么样,为什么? wkwebview设置userAgent的方法知道吗?有遇到什么问题嘛? 怎么自己设计一个系统的UIScrollview。 理想汽车 头条 1.知道weak吗, 编译链接你有了解多少 组件化的理解,Pod update和pod install的区别,简单说一下内部是怎么实现的 算法: 某上市公司 内存管理方面的 算法: |
|
1、如何检测OOM |
可以将自己遇到的感觉有价值的面试题列到这里,如果有好的解决方案参考资料可以放到这里,后续我会整理出来。
The text was updated successfully, but these errors were encountered: