Permalink
Browse files

removed delete button

  • Loading branch information...
1 parent 3c2bf5f commit 6ddc4d1cb63ab3dad7877178c72acfe16f8d09a1 @jovhenni19 committed Jan 2, 2014
@@ -101,10 +101,13 @@ - (void)viewDidLoad
[self addPaddingAndBorder:self.textFieldDesignation color:[UIColor colorWithRed:178.0f/255.0f green:178.0f/255.0f blue:178.0f/255.0f alpha:1.0f]];
- self.buttonDeleteBroker.layer.shadowOpacity = 0.75f;
- self.buttonDeleteBroker.layer.shadowRadius = 2.0f;
- self.buttonDeleteBroker.layer.shadowOffset = CGSizeMake(0.0f, 1.0f);
- self.buttonDeleteBroker.layer.shadowColor = [UIColor blackColor].CGColor;
+
+ self.buttonDeleteBroker.transform = CGAffineTransformMakeRotation(M_PI_4);
+
+// self.buttonDeleteBroker.layer.shadowOpacity = 0.75f;
+// self.buttonDeleteBroker.layer.shadowRadius = 2.0f;
+// self.buttonDeleteBroker.layer.shadowOffset = CGSizeMake(0.0f, 1.0f);
+// self.buttonDeleteBroker.layer.shadowColor = [UIColor blackColor].CGColor;
NSMutableString *urlStringBroker = [NSMutableString stringWithString:@"http://keydiscoveryinc.com/agent_bridge/webservice/get_broker_list.php"];
@@ -728,19 +731,27 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
label.tag = 1;
- UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
+// UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
+ UIButton *button = [UIButton buttonWithType:UIButtonTypeContactAdd];
- [button setImage:[UIImage imageNamed:@"delete-blue.png"] forState:UIControlStateNormal];
+// [button setImage:[UIImage imageNamed:@"delete-blue.png"] forState:UIControlStateNormal];
- button.frame = CGRectMake(label.frame.origin.x + label.frame.size.width + 2.0f, 5.0f, 30.0f, 30.0f);
+// button.frame = CGRectMake(label.frame.origin.x + label.frame.size.width + 2.0f, 5.0f, 30.0f, 30.0f);
+ button.frame = CGRectMake(label.frame.origin.x + label.frame.size.width + 2.0f, 5.0f, 20.0f, 20.0f);
button.tag = 2;
+ self.buttonDeleteBroker.transform = CGAffineTransformMakeRotation(M_PI_4);
+
[button addTarget:self action:@selector(removeDesignation:) forControlEvents:UIControlEventTouchUpInside];
- button.layer.shadowOpacity = 0.75f;
- button.layer.shadowRadius = 2.0f;
- button.layer.shadowOffset = CGSizeMake(0.0f, 1.0f);
- button.layer.shadowColor = [UIColor blackColor].CGColor;
+// button.layer.shadowOpacity = 0.75f;
+// button.layer.shadowRadius = 2.0f;
+// button.layer.shadowOffset = CGSizeMake(0.0f, 1.0f);
+// button.layer.shadowColor = [UIColor blackColor].CGColor;
+
+ CGPoint center = button.center;
+ center.y = cell.contentView.center.y;
+ button.center = center;
[cell.contentView addSubview:label];
[cell.contentView addSubview:button];
@@ -1,17 +0,0 @@
-{
- "images" : [
- {
- "idiom" : "universal",
- "scale" : "1x",
- "filename" : "delete-blue.png"
- },
- {
- "idiom" : "universal",
- "scale" : "2x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
@@ -2474,11 +2474,11 @@
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
- <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="3lI-Jn-pm6">
- <rect key="frame" x="270" y="52" width="30" height="30"/>
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="contactAdd" lineBreakMode="middleTruncation" id="3lI-Jn-pm6">
+ <rect key="frame" x="271" y="52" width="29" height="29"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="22"/>
- <state key="normal" image="delete-blue">
+ <state key="normal">
<color key="titleColor" red="1" green="0.0" blue="0.07060657998" alpha="1" colorSpace="calibratedRGB"/>
</state>
<connections>
@@ -3149,7 +3149,6 @@
<image name="blue_small" width="50" height="25"/>
<image name="button-long" width="225" height="30"/>
<image name="buyers_icon" width="22" height="21"/>
- <image name="delete-blue" width="20" height="20"/>
<image name="head_strip" width="1" height="52"/>
<image name="home_icon" width="23" height="21"/>
<image name="logo" width="112" height="27"/>

0 comments on commit 6ddc4d1

Please sign in to comment.