转载自:
http://www.liuchendi.com/2016/01/29/iOS/35_hugging-and-compression-resistance/
用AutoLayout也有一段时间了, 之前一直都不是很理解 Content Hugging和 Content Compression的优先级。今天就把这个问题给解决了,到底这两个东西要怎么用?这篇文章算是学习笔记吧
Intrinsic Content Size
在学习这两个东西前,首先得明[......]
转载自:
http://www.liuchendi.com/2016/01/29/iOS/35_hugging-and-compression-resistance/
用AutoLayout也有一段时间了, 之前一直都不是很理解 Content Hugging和 Content Compression的优先级。今天就把这个问题给解决了,到底这两个东西要怎么用?这篇文章算是学习笔记吧
Intrinsic Content Size
在学习这两个东西前,首先得明[......]
转载自:http://www.2cto.com/kf/201506/407038.html
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
UITableViewCell *cell;
switch (indexPath.row) {
case 0:
{[......]
scheduleNotification之前,需要申请权限,如下:
[[UIApplication sharedApplication] registerUserNotificationSettings:
[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeAlert)
categories:nil]];[......]