Skip to content

Commit 61d8723

Browse files
author
MattjCamp
committed
Fixed an issue with the control type field again
1 parent 7dd3f98 commit 61d8723

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed
665 Bytes
Binary file not shown.

TastingNotes/ControlsVC.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ -(IBAction)addControl{
114114
animated:YES];
115115

116116
}
117+
118+
Control *c = [[self.notebook listOfControls] lastObject];
119+
if(!c.type)
120+
c.type = @"SmallText";
117121
}
118122

119123
-(IBAction)showHelp{

TastingNotes/Notebook.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ -(void)addControlToThisNotebook{
484484
control.order = controlOrder;
485485
control.canEdit = YES;
486486
control.title = @"<Add Control Title>";
487-
control.type = @"SmallText";
487+
//control.type = @"SmallText";
488488
[section.listOfControls addObject:control];
489489
[self.listOfControls addObject:control];
490490
}

TastingNotes/TastingNotes-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<key>CFBundlePackageType</key>
2222
<string>APPL</string>
2323
<key>CFBundleShortVersionString</key>
24-
<string>3.1.2</string>
24+
<string>3.1.3</string>
2525
<key>CFBundleSignature</key>
2626
<string>????</string>
2727
<key>CFBundleURLTypes</key>
@@ -36,7 +36,7 @@
3636
</dict>
3737
</array>
3838
<key>CFBundleVersion</key>
39-
<string>3.1.2</string>
39+
<string>3.1.3</string>
4040
<key>LSRequiresIPhoneOS</key>
4141
<true/>
4242
<key>UIMainStoryboardFile</key>

0 commit comments

Comments
 (0)