radianttap / RTWalkthrough

An Objective-C clone of github/ariok/BWWalkthrough (a bit improved in the process)
MIT License
12 stars 3 forks source link

iOS 11 #4

Open Ljmedia opened 7 years ago

Ljmedia commented 7 years ago

Hello,

the project is compiling in Xcode 9, but it seems there is an issue with some constraints.

Best regards, Lars

drak25 commented 7 years ago

Update addViewController method to make it work in ios11 :

Also change constraints in viewDidLoad to :

[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[scrollview]-0-|" options:0 metrics:nil views:@{@"scrollview":self.scrollview}]];
[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-0-[scrollview]-0-|" options:0 metrics:nil views:@{@"scrollview":self.scrollview}]];

(not sure if the latter is necessary, but did it anyway to match constraints from original Walkthrough on which this project is based on).