Skip to content

Commit 447a43f

Browse files
update
1 parent 511ae79 commit 447a43f

File tree

4 files changed

+70
-8
lines changed

4 files changed

+70
-8
lines changed

UIStarty/UIStarty/FESouYeViewController.h

+1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010

1111
@interface FESouYeViewController : UIViewController
1212
@property (weak, nonatomic) IBOutlet UITableView *tableTest;
13+
@property (weak, nonatomic) IBOutlet UIWebView *webview;
1314

1415
@end

UIStarty/UIStarty/FESouYeViewController.m

+32
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,18 @@ @interface FESouYeViewController ()
1515
@implementation FESouYeViewController
1616

1717
@synthesize tableTest = _tableTest;
18+
@synthesize webview = _webview;
1819

1920
- (void)viewDidLoad
2021
{
2122
[super viewDidLoad];
2223
// Do any additional setup after loading the view.
24+
25+
//[self setExtraCellLineHidden:_tableTest];
26+
27+
UIView *view = [UIView new];
28+
view.backgroundColor = [UIColor clearColor];
29+
[_tableTest setTableFooterView:view];
2330
}
2431

2532
- (void)didReceiveMemoryWarning
@@ -28,6 +35,19 @@ - (void)didReceiveMemoryWarning
2835
// Dispose of any resources that can be recreated.
2936
}
3037

38+
- (IBAction)call:(id)sender {
39+
// NSString *phoneNum = @"10086";
40+
//
41+
// NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"tel://%@",phoneNum]];
42+
//
43+
// [[UIApplication sharedApplication] openURL:url];
44+
45+
46+
NSURL *url = [NSURL URLWithString:@"tel:11111111"];
47+
48+
[_webview loadRequest:[NSURLRequest requestWithURL:url]];
49+
}
50+
3151
//- (IBAction)jump:(UIButton *)sender {
3252
//// // 获取故事板
3353
//// UIStoryboard *board = [UIStoryboard storyboardWithName:@"SecondStoryboard" bundle:nil];
@@ -39,6 +59,17 @@ - (void)didReceiveMemoryWarning
3959
//// [self presentModalViewController:next animated:YES];
4060
//}
4161

62+
- (void)setExtraCellLineHidden: (UITableView *)tableView
63+
64+
{
65+
66+
UIView *view = [UIView new];
67+
68+
view.backgroundColor = [UIColor clearColor];
69+
70+
[tableView setTableFooterView:view];
71+
}
72+
4273
- (NSInteger) numberOfSectionsInTableView:(UITableView*) tables
4374
{
4475
return 2;
@@ -47,6 +78,7 @@ - (NSInteger) numberOfSectionsInTableView:(UITableView*) tables
4778

4879
- (NSInteger)tableView:(UITableView*)tableview numberOfRowsInSection:(NSInteger)section
4980
{
81+
//_tableTest.separatorStyle=UITableViewCellSeparatorStyleNone;
5082
return 1;
5183
}
5284

UIStarty/UIStarty/en.lproj/MainStoryboard.storyboard

+37-8
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,81 @@
99
<objects>
1010
<viewController id="qcq-aE-6Zl" sceneMemberID="viewController">
1111
<view key="view" contentMode="scaleToFill" id="vj8-q7-2ZG">
12-
<rect key="frame" x="0.0" y="20" width="320" height="499"/>
12+
<rect key="frame" x="0.0" y="20" width="320" height="411"/>
1313
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
1414
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
1515
</view>
1616
<tabBarItem key="tabBarItem" title="好友" id="3or-Jj-HSn"/>
1717
</viewController>
1818
<placeholder placeholderIdentifier="IBFirstResponder" id="V7r-F1-wro" userLabel="First Responder" sceneMemberID="firstResponder"/>
1919
</objects>
20-
<point key="canvasLocation" x="200" y="-36"/>
20+
<point key="canvasLocation" x="-482" y="-164"/>
2121
</scene>
2222
<!--Sou Ye View Controller - 首页-->
2323
<scene sceneID="0Pw-w5-xFu">
2424
<objects>
2525
<viewController id="vk2-WL-AVS" customClass="FESouYeViewController" sceneMemberID="viewController">
2626
<view key="view" contentMode="scaleToFill" id="19b-Yo-pEU">
27-
<rect key="frame" x="0.0" y="20" width="320" height="499"/>
27+
<rect key="frame" x="0.0" y="20" width="320" height="411"/>
2828
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
2929
<subviews>
3030
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="a2g-e9-y0A">
3131
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
32+
<constraints>
33+
<constraint firstAttribute="height" constant="258" id="ywT-MX-fMk"/>
34+
</constraints>
3235
<connections>
3336
<outlet property="dataSource" destination="vk2-WL-AVS" id="xk7-pG-IYf"/>
3437
<outlet property="delegate" destination="vk2-WL-AVS" id="IE8-yo-huW"/>
3538
</connections>
3639
</tableView>
40+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="zfT-z4-b1W">
41+
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
42+
<state key="normal" title="call">
43+
<color key="titleColor" red="0.19607843459999999" green="0.30980393290000002" blue="0.52156865600000002" alpha="1" colorSpace="calibratedRGB"/>
44+
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
45+
</state>
46+
<state key="highlighted">
47+
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
48+
</state>
49+
<connections>
50+
<action selector="call:" destination="vk2-WL-AVS" eventType="touchUpInside" id="eds-zq-Hs4"/>
51+
</connections>
52+
</button>
53+
<webView contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ssn-DS-8Fs">
54+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
55+
<constraints>
56+
<constraint firstAttribute="height" constant="128" id="Hkn-ai-nb4"/>
57+
<constraint firstAttribute="width" constant="240" id="lRW-62-FqO"/>
58+
</constraints>
59+
</webView>
3760
</subviews>
3861
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
3962
<constraints>
4063
<constraint firstItem="a2g-e9-y0A" firstAttribute="leading" secondItem="19b-Yo-pEU" secondAttribute="leading" type="default" id="BeH-hG-z7m"/>
41-
<constraint firstItem="a2g-e9-y0A" firstAttribute="bottom" secondItem="19b-Yo-pEU" secondAttribute="bottom" type="default" id="ORb-58-zgJ"/>
64+
<constraint firstItem="Ssn-DS-8Fs" firstAttribute="leading" secondItem="19b-Yo-pEU" secondAttribute="leading" constant="20" symbolic="YES" type="default" id="JIQ-cd-vFI"/>
4265
<constraint firstItem="a2g-e9-y0A" firstAttribute="top" secondItem="19b-Yo-pEU" secondAttribute="top" type="default" id="RmT-JV-271"/>
66+
<constraint firstItem="Ssn-DS-8Fs" firstAttribute="top" secondItem="a2g-e9-y0A" secondAttribute="bottom" constant="8" symbolic="YES" type="default" id="WwP-Ur-zr4"/>
4367
<constraint firstItem="a2g-e9-y0A" firstAttribute="trailing" secondItem="19b-Yo-pEU" secondAttribute="trailing" type="default" id="nTQ-3P-3tX"/>
68+
<constraint firstItem="zfT-z4-b1W" firstAttribute="trailing" secondItem="19b-Yo-pEU" secondAttribute="trailing" type="default" id="roL-1L-NSc"/>
69+
<constraint firstItem="zfT-z4-b1W" firstAttribute="bottom" secondItem="19b-Yo-pEU" secondAttribute="bottom" type="default" id="yAH-oQ-h39"/>
4470
</constraints>
4571
</view>
4672
<tabBarItem key="tabBarItem" title="首页" id="d3I-hW-2ka"/>
4773
<connections>
4874
<outlet property="tableTest" destination="a2g-e9-y0A" id="au6-uA-leb"/>
75+
<outlet property="webview" destination="Ssn-DS-8Fs" id="oJ0-Si-BkJ"/>
4976
</connections>
5077
</viewController>
5178
<placeholder placeholderIdentifier="IBFirstResponder" id="aUf-7B-XHJ" userLabel="First Responder" sceneMemberID="firstResponder"/>
5279
</objects>
53-
<point key="canvasLocation" x="10" y="-726"/>
80+
<point key="canvasLocation" x="-482" y="-740"/>
5481
</scene>
5582
<!--Tab Bar Controller-->
5683
<scene sceneID="R28-nL-YXR">
5784
<objects>
5885
<tabBarController definesPresentationContext="YES" id="5QH-1S-ODa" sceneMemberID="viewController">
59-
<simulatedTabBarMetrics key="simulatedBottomBarMetrics"/>
86+
<nil key="simulatedBottomBarMetrics"/>
6087
<tabBar key="tabBar" contentMode="scaleToFill" id="6qr-Iz-raF">
6188
<rect key="frame" x="129" y="330" width="163" height="49"/>
6289
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
@@ -69,14 +96,16 @@
6996
</tabBarController>
7097
<placeholder placeholderIdentifier="IBFirstResponder" id="go0-uz-MhS" userLabel="First Responder" sceneMemberID="firstResponder"/>
7198
</objects>
72-
<point key="canvasLocation" x="-334" y="-362"/>
99+
<point key="canvasLocation" x="-1023" y="-473"/>
73100
</scene>
74101
</scenes>
75102
<classes>
76103
<class className="FESouYeViewController" superclassName="UIViewController">
77104
<source key="sourceIdentifier" type="project" relativePath="./Classes/FESouYeViewController.h"/>
78105
<relationships>
106+
<relationship kind="action" name="call:"/>
79107
<relationship kind="outlet" name="tableTest" candidateClass="UITableView"/>
108+
<relationship kind="outlet" name="webview" candidateClass="UIWebView"/>
80109
</relationships>
81110
</class>
82111
<class className="NSLayoutConstraint" superclassName="NSObject">
@@ -86,6 +115,6 @@
86115
<simulatedMetricsContainer key="defaultSimulatedMetrics">
87116
<simulatedStatusBarMetrics key="statusBar"/>
88117
<simulatedOrientationMetrics key="orientation"/>
89-
<simulatedScreenMetrics key="destination" type="retina4"/>
118+
<simulatedScreenMetrics key="destination"/>
90119
</simulatedMetricsContainer>
91120
</document>

0 commit comments

Comments
 (0)