会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
沙影无痕
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
22
下一页
2014年6月13日
UITextField限定输入长度
摘要: - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{if (range.location > 5){ ...
阅读全文
posted @ 2014-06-13 16:15 沙影无痕
阅读(191)
评论(0)
推荐(0)
2014年6月5日
UITextField内容垂直居中
摘要: @property(nonatomic) UIControlContentVerticalAlignment contentVerticalAlignment; // how to position content vertically inside control. default is ...
阅读全文
posted @ 2014-06-05 09:58 沙影无痕
阅读(278)
评论(0)
推荐(0)
2014年5月21日
UITextField监控输入文字变化方法
摘要: UITextField监控输入文字变化方法[self.textFeild addTarget:self action:@selector(textChangeAction:)forControlEvents:UIControlEventEditingChanged];- (void) textCh...
阅读全文
posted @ 2014-05-21 15:34 沙影无痕
阅读(154)
评论(0)
推荐(0)
2014年5月19日
禁用ios7 手势滑动返回功能
摘要: 在有的时候,我们不需要手势返回功能,那么可以在页面中添加以下代码:- (void)viewDidAppear:(BOOL)animated{ [super viewDidAppear:animated]; // 禁用 iOS7 返回手势 if ([self.navigationCo...
阅读全文
posted @ 2014-05-19 16:22 沙影无痕
阅读(160)
评论(0)
推荐(0)
文字高度计算
摘要: 文字高度计算方法CGFloat fixedWidth = self.view.frame.size.width;CGSize newSize = [label sizeThatFits:CGSizeMake(fixedWidth, MAXFLOAT)];CGFloat height = newSiz...
阅读全文
posted @ 2014-05-19 10:34 沙影无痕
阅读(123)
评论(0)
推荐(0)
还原UINavigationController 的 UINavigationBar上的系统backBarButtonItem
摘要: 还原UINavigationController 的 UINavigationBar上的系统backBarButtonItem在页面设计过程中,有时候会用到self.navigationItem.leftBarButtonItem = othButtonItem;而实际上在这个位置是存在有一个bac...
阅读全文
posted @ 2014-05-19 09:45 沙影无痕
阅读(126)
评论(0)
推荐(0)
2014年4月25日
转换UITableViewCell在 self.navigationController.view 上的位置
摘要: 转换UITableViewCell在 self.navigationController.view 上的位置CGRect rect = [self.navigationController.view convertRect:cell.frame fromView:self.tableView]; ...
阅读全文
posted @ 2014-04-25 09:58 沙影无痕
阅读(144)
评论(0)
推荐(0)
2014年3月25日
设置UIView圆角的拓展
摘要: @interface UIView (RectCorner)@end@implementation UIView (RectCorner)- (void)setCornerOnTop { UIBezierPath *maskPath; maskPath = [UIBezierPath b...
阅读全文
posted @ 2014-03-25 09:42 沙影无痕
阅读(132)
评论(0)
推荐(0)
获取中文字符串的拼音
摘要: 获取中文字符串的拼音- (NSString *)phonetic { NSMutableString *source = [self mutableCopy]; CFStringTransform((CFMutableStringRef)source, NULL, kCFStringTr...
阅读全文
posted @ 2014-03-25 09:24 沙影无痕
阅读(261)
评论(0)
推荐(0)
2014年3月11日
ios 检测声音支持
摘要: BOOL bAudioInputAvailable = NO; AVAudioSession *audioSession = [AVAudioSession sharedInstance]; if ([[UIDevice currentDevice].systemVersion flo...
阅读全文
posted @ 2014-03-11 14:59 沙影无痕
阅读(354)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
···
22
下一页
公告