- 博客(7)
- 收藏
- 关注
原创 笔记-字典转json字符串
-(NSString *)convertToJsonData:(NSDictionary *)dict{ NSError *error; NSData *jsonData = [NSJSONSerialization dataWithJSONObject:dict options:NSJSONWritingPrettyPrinted error:&error]; NSString *jsonString; if (!jsonData) {
2020-05-28 12:29:22 112
原创 获取当前控制器(当前屏幕显示的ViewController)
//获取当前屏幕显示的viewcontroller- (UIViewController *)getCurrentVC { UIViewController *result = nil; UIViewController *rootVC = [UIApplication sharedApplication].keyWindow.rootViewController; do { if ([rootVC isKindOfClass:[UINavigationCon
2020-05-27 15:40:59 283
原创 IOS学习笔记--UITextView换行功能
UITextView换行//UITextView换行 self.inputTextView.ignoreSwitchingByNextPrevious = YES;
2019-11-26 11:46:23 1627
原创 IOS学习笔记--代理、block、通知
代理设置代理属性- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { MyTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MyTableVie...
2019-09-02 09:41:20 125
原创 IOS学习笔记--懒加载
IOS学习笔记--懒加载@property(nonatomic,strong)NSMutableArray *mArray;-(NSMutableArray *)mArray{ if (!_mArray) { _mArray = [NSMutableArray array]; for (NSInteger i = 0; i < 6; i++) ...
2019-09-02 09:08:27 98
原创 不让textView和textField输入表情
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{ if ([self stringContainsEmoji:string]) { return NO; ...
2019-06-14 11:28:45 325
原创 解决升级Xcode缺少 libstdc++.6.0.9.tbd 库报错的问题
解决升级Xcode缺少 libstdc++.6.0.9.tbd 库的问题.升级Xcode之后,运行项目报如下错误.搜了一下发现是因为新升级的Xcode没有libstdc++.6.0.9.tbd这个库,然后去百度找了一个按照以下路径添加进去,再编译一下就OK了.附上libstdc++.6.0.9.tbd下载地址:链接: https://pan.baidu.com/s/1H636eFkGQf...
2019-06-04 15:20:32 3613
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人