Skip to content

Commit 28239b9

Browse files
Paolo ArdiaPaolo Ardia
authored andcommitted
fix to segues mapping from storyboards
1 parent 2d45af3 commit 28239b9

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

ResourceObjC/Sources/SeguesGenerator.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ - (NSString *)propertyName
8383
- (SegueResource*)resourceForViewController:(NSString*)className
8484
{
8585
NSUInteger index = [self.resources indexOfObjectPassingTest:^BOOL(SegueResource * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
86-
if ([obj.className isEqualToString:className])
86+
if ([obj.sourceClassName isEqualToString:className])
8787
{
8888
*stop = YES;
8989
return YES;

ResourceObjCTest/ResourceObjCTest/Base.lproj/Main.storyboard

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<outlet property="imageView" destination="tvn-B6-FrS" id="3ee-G7-Oeq"/>
4040
<outlet property="label" destination="8kX-NH-AiF" id="gTg-0Q-uxn"/>
4141
<segue destination="asI-WZ-88X" kind="show" identifier="openNext" id="vlu-Jy-XGR"/>
42+
<segue destination="jMu-cY-bEk" kind="show" id="EDt-YO-Ju8"/>
4243
</connections>
4344
</viewController>
4445
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
@@ -66,6 +67,24 @@
6667
</objects>
6768
<point key="canvasLocation" x="729" y="37"/>
6869
</scene>
70+
<!--View Controller-->
71+
<scene sceneID="Oe7-1V-6Eg">
72+
<objects>
73+
<viewController id="jMu-cY-bEk" sceneMemberID="viewController">
74+
<layoutGuides>
75+
<viewControllerLayoutGuide type="top" id="XOR-ji-SxE"/>
76+
<viewControllerLayoutGuide type="bottom" id="etg-G2-z7w"/>
77+
</layoutGuides>
78+
<view key="view" contentMode="scaleToFill" id="HZO-tC-2U8">
79+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
80+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
81+
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
82+
</view>
83+
</viewController>
84+
<placeholder placeholderIdentifier="IBFirstResponder" id="LlM-nU-fxE" userLabel="First Responder" sceneMemberID="firstResponder"/>
85+
</objects>
86+
<point key="canvasLocation" x="729" y="790"/>
87+
</scene>
6988
<!--Some-->
7089
<scene sceneID="Af8-Na-j93">
7190
<objects>

0 commit comments

Comments
 (0)