Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
GMNetService
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMNetService
Commits
71753ad4
Commit
71753ad4
authored
May 26, 2016
by
汪洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
saveDemo
parent
ab5f94da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
Main.storyboard
Example/GMNetService/Main.storyboard
+3
-3
ViewController.swift
Example/GMNetService/ViewController.swift
+7
-3
No files found.
Example/GMNetService/Main.storyboard
View file @
71753ad4
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"
7706"
systemVersion=
"14D136
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
initialViewController=
"whP-gf-Uak"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"
10117"
systemVersion=
"15F34
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
initialViewController=
"whP-gf-Uak"
>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"
7703
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"
10085
"
/>
</dependencies>
<scenes>
<!--View Controller-->
<scene
sceneID=
"wQg-tq-qST"
>
<objects>
<viewController
id=
"whP-gf-Uak"
customClass=
"
GMViewController
"
sceneMemberID=
"viewController"
>
<viewController
id=
"whP-gf-Uak"
customClass=
"
ViewController"
customModule=
"GMNetService_Example"
customModuleProvider=
"target
"
sceneMemberID=
"viewController"
>
<layoutGuides>
<viewControllerLayoutGuide
type=
"top"
id=
"uEw-UM-LJ8"
/>
<viewControllerLayoutGuide
type=
"bottom"
id=
"Mvr-aV-6Um"
/>
...
...
Example/GMNetService/ViewController.swift
View file @
71753ad4
...
...
@@ -15,11 +15,15 @@ class ViewController: UIViewController {
super
.
viewDidLoad
()
GMNetService
.
sharedInstance
()
.
sendRequestWithUrl
(
"aa"
,
parameters
:
nil
,
method
:
.
Get
,
success
:
{
(
data
,
msg
)
in
})
{
(
msg
)
in
GMNetService
.
sharedInstance
()
.
apiHost
=
"http://backend.gengmei.cc"
;
GMNetService
.
sharedInstance
()
.
sendRequestWithUrl
(
"/api/index/v3?version=5.9.5"
,
parameters
:
nil
,
method
:
.
Get
,
success
:
{
(
data
,
msg
)
in
print
(
"aaaa"
)
// print(data["hottags"])
})
{
(
msg
,
code
)
in
print
(
msg
)
}
}
override
func
didReceiveMemoryWarning
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment