Commit c2691027dab16974e9894368797213ac5ef9a533

Authored by Imanol-Mikel Barba Sabariego
1 parent b43e7309

--no commit message

DUREX Vendor Control/DUREX Vendor Control.xcodeproj/project.pbxproj
... ... @@ -21,6 +21,7 @@
21 21 34AAB889189804FF0019860D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 34AAB880189804FF0019860D /* main.m */; };
22 22 34AAB88A189804FF0019860D /* MainStoryboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 34AAB881189804FF0019860D /* MainStoryboard.storyboard */; };
23 23 34AAB88D189805300019860D /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 34AAB88C189805300019860D /* Images.xcassets */; };
  24 + F9127C8B19951B3500040C52 /* back_arrow.png in Resources */ = {isa = PBXBuildFile; fileRef = F9127C8A19951B3500040C52 /* back_arrow.png */; };
24 25 F98356D6192E835F00EA6821 /* InitialViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F98356D5192E835F00EA6821 /* InitialViewController.m */; };
25 26 F98356D8192E906600EA6821 /* bluetooth.png in Resources */ = {isa = PBXBuildFile; fileRef = F98356D7192E906600EA6821 /* bluetooth.png */; };
26 27 F98356DB192EAFD400EA6821 /* CommunicationProtocol.m in Sources */ = {isa = PBXBuildFile; fileRef = F98356DA192EAFD400EA6821 /* CommunicationProtocol.m */; };
... ... @@ -73,6 +74,7 @@
73 74 34AAB880189804FF0019860D /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = FirstAppExample/main.m; sourceTree = SOURCE_ROOT; };
74 75 34AAB881189804FF0019860D /* MainStoryboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = MainStoryboard.storyboard; path = FirstAppExample/MainStoryboard.storyboard; sourceTree = SOURCE_ROOT; };
75 76 34AAB88C189805300019860D /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = FirstAppExample/Images.xcassets; sourceTree = SOURCE_ROOT; };
  77 + F9127C8A19951B3500040C52 /* back_arrow.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = back_arrow.png; sourceTree = SOURCE_ROOT; };
76 78 F98356D4192E835F00EA6821 /* InitialViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InitialViewController.h; sourceTree = SOURCE_ROOT; };
77 79 F98356D5192E835F00EA6821 /* InitialViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InitialViewController.m; sourceTree = SOURCE_ROOT; };
78 80 F98356D7192E906600EA6821 /* bluetooth.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = bluetooth.png; sourceTree = SOURCE_ROOT; };
... ... @@ -169,6 +171,7 @@
169 171 3471866718070D9300FA0FB2 /* Supporting Files */ = {
170 172 isa = PBXGroup;
171 173 children = (
  174 + F9127C8A19951B3500040C52 /* back_arrow.png */,
172 175 F98356D7192E906600EA6821 /* bluetooth.png */,
173 176 34AAB87E189804FF0019860D /* DUREX Vendor Control-Info.plist */,
174 177 34AAB87F189804FF0019860D /* DUREX Vendor Control-Prefix.pch */,
... ... @@ -307,6 +310,7 @@
307 310 34AAB884189804FF0019860D /* EMConnectingView.xib in Resources */,
308 311 F9C77F50192CDE30002DBE8A /* durex.json in Resources */,
309 312 F9C77F4E192CDE18002DBE8A /* InfoPlist.strings in Resources */,
  313 + F9127C8B19951B3500040C52 /* back_arrow.png in Resources */,
310 314 34AAB88D189805300019860D /* Images.xcassets in Resources */,
311 315 34AAB88A189804FF0019860D /* MainStoryboard.storyboard in Resources */,
312 316 );
... ...
DUREX Vendor Control/DUREX Vendor Control.xcodeproj/project.xcworkspace/xcuserdata/imanol.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type
DUREX Vendor Control/MenuTableViewController.m
... ... @@ -137,8 +137,18 @@
137 137 [super viewDidLoad];
138 138 [_activityIndicator setHidden:YES];
139 139  
  140 + UIImage *backImage = [UIImage imageNamed:@"back_arrow.png"];
  141 + UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom];
  142 + backButton.frame = CGRectMake(0, 0, backImage.size.width/2, backImage.size.height/2);
  143 +
  144 + [backButton setImage:backImage forState:UIControlStateNormal];
  145 + [backButton setTitle:@"Back" forState:UIControlStateNormal];
  146 + [backButton addTarget:self action:@selector(backButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
  147 +
  148 + UIBarButtonItem *backBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:backButton];
  149 +
140 150 self.navigationItem.hidesBackButton = YES;
141   - self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStylePlain target:self action:@selector(backButtonPressed:)];
  151 + self.navigationItem.leftBarButtonItem = backBarButtonItem;
142 152  
143 153 //Emmoco protocol initialization
144 154 _protocol = [CommunicationProtocol sharedProtocol];
... ...
DUREX Vendor Control/back_arrow.png 0 → 100644

3.06 KB

DUREX tests/DUREX test.xcodeproj/project.xcworkspace/xcuserdata/imanol.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type
DUREX tests/MenuTableViewController.m
... ... @@ -150,7 +150,6 @@
150 150  
151 151 UIBarButtonItem *backBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:backButton];
152 152  
153   -
154 153 self.navigationItem.hidesBackButton = YES;
155 154 self.navigationItem.leftBarButtonItem = backBarButtonItem;
156 155  
... ...