![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Objective-C
文章平均质量分 59
_Michael_
这个作者很懒,什么都没留下…
展开
-
Get Stared for ISO App development.
Get Started with ISO app develepmentYou will see the link related to Objective-C, it can generated to PDF format. it's very useful.Learn Objective-C languageIt's essential knowle原创 2015-06-17 11:57:02 · 470 阅读 · 0 评论 -
XCode AutoLayout series 1
实现Label水平居中。#pragma mark - next button-(IBAction)nextTapped:(id)sender{ static NSArray *artists; if(artists==nil){ artists=[[NSArray alloc] initWithObjects:@"TheLonious M原创 2015-08-18 12:26:39 · 337 阅读 · 0 评论 -
UICollectionView
CollectionView 是IOS开发中的很常用的一个控件。在填充单元格时有两种方式:一个是通过注册类,另一个是使用NIB(注册XIB文件)。在视图加载事件中调用相应的注册单元格代码。registerClass与registerNib两种的区别官方文档里这样描述: // For each reuse identifier that the collection view will原创 2015-08-17 16:48:48 · 410 阅读 · 0 评论 -
Passing data between view controller.
This question seems to be very popular here on stackoverflow so I thought I would try and give a better answerto help out people starting in the world of IOS like me.I hope this answer is clea原创 2015-08-05 14:27:09 · 531 阅读 · 0 评论 -
xcode AutoLayout
效果链接代码链接Auto Layout 是IOS 6.0才开始引用的技术,如果要兼容IOS6.0以下程序,则不能启用Auto Layout,它能解决屏幕旋转界面呈现混乱的总是,如果有人使用过网页的响应式布局的话,那么它感觉就与网页响应式布局相似,它不仅能设置控件的位置与大小,而且还可以放大,缩小处理。如果是简单的设置则可以使用autolayout,如果是复杂的话,我觉得原创 2015-08-16 20:37:24 · 408 阅读 · 0 评论 -
NSSortDescriptor ignores Comperator Block
Thanks to the hint from Paul I was able to figure out what the problem is. The solution can be found in the Apple docs(have a look at the "Fetch Predicates and Sort Description" section).I thought t原创 2015-08-29 13:33:47 · 537 阅读 · 0 评论 -
pushViewController and presentViewController are not working.
@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. //self.原创 2015-08-13 14:22:36 · 570 阅读 · 0 评论 -
IOS真机运行环境操作步骤
1.Create a certificates request in local machine, save to disk.2.Create AppID.3.Connect the iPhone to Mac, get the device UIUD.4.Create Device.5.Create Profile,then download.6.Double-click profile, th原创 2015-08-24 20:39:36 · 552 阅读 · 0 评论 -
IOS 触发按钮执行事件
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{ //NSString *sectionName= [[sections objectAtIndex:indexPath.row] objectAtIndex:0];原创 2015-08-07 17:00:54 · 1850 阅读 · 0 评论 -
TableView Summary
Tableview 在ISO中的使用很频繁,我也是刚刚学习ISO开发,就些想就TableView总结一下。有什么错误或补充请大家提出来,Welcome your valuable comments.;)一、简单的列表。在开发之前我想大家应该知道TableView有两个重要的委托:UITableViewDataSources, UITableViewDelegate.这两个一个是原创 2015-07-13 10:03:36 · 467 阅读 · 0 评论 -
XCode Hugging Priority- Compress Resistance Priority
label1不约束宽度label2约束宽度为200,约束的优先级为751,大于Content Hugging Priority(250)label3约束宽度为200,约束的优先级为200,小于Content Hugging Priority(250)label4约束宽度为60, 约束的优先级为751,大于Content Compression Resistance Pri原创 2015-08-18 18:44:00 · 449 阅读 · 0 评论