Skip to content

Commit

Permalink
スクロールバー表示
Browse files Browse the repository at this point in the history
  • Loading branch information
Toshiki Ikda committed Aug 9, 2016
1 parent 6d18c45 commit abf1c97
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 4 deletions.
7 changes: 4 additions & 3 deletions DB/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
</navigationItem>
</items>
</navigationBar>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="1480E8D1-5EA3-4ED4-9F66-76C13089E9C7" translatesAutoresizingMaskIntoConstraints="NO" id="ltv-RK-fmw">
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="796EFD2E-2286-482B-9FB3-18D4D5B6D2E8" translatesAutoresizingMaskIntoConstraints="NO" id="ltv-RK-fmw">
<rect key="frame" x="317" y="491" width="25" height="36"/>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="zOo-rN-wYP">
Expand Down Expand Up @@ -1820,6 +1820,7 @@ Copyright(c) Future University Hakodate. All Rights Reserved.
<outlet property="pic5" destination="JxF-T1-tAm" id="Zbh-1N-IiP"/>
<outlet property="pic6" destination="7dZ-cn-WxH" id="QRs-Vy-ukl"/>
<outlet property="pic7" destination="K9J-5Q-7az" id="LA4-Ds-Reg"/>
<outlet property="scroll" destination="PML-vD-YNu" id="woT-2R-7o9"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="9H3-kX-eYn" userLabel="First Responder" sceneMemberID="firstResponder"/>
Expand All @@ -1828,7 +1829,7 @@ Copyright(c) Future University Hakodate. All Rights Reserved.
</scene>
</scenes>
<resources>
<image name="1480E8D1-5EA3-4ED4-9F66-76C13089E9C7" width="25" height="25">
<image name="796EFD2E-2286-482B-9FB3-18D4D5B6D2E8" width="25" height="25">
<mutableData key="keyedArchiveRepresentation">
YnBsaXN0MDDUAQIDBAUGOjtYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoK0HCBEW
GxwgISgrLjQ3VSRudWxs1AkKCwwNDg8QViRjbGFzc1xOU0ltYWdlRmxhZ3NWTlNSZXBzV05TQ29sb3KA
Expand Down Expand Up @@ -1956,7 +1957,7 @@ PBg/GEQYTBhPGGEYZBhpAAAAAAAAAgEAAAAAAAAAPgAAAAAAAAAAAAAAAAAAGGs
<image name="s_title.png" width="242" height="64"/>
</resources>
<inferredMetricsTieBreakers>
<segue reference="Z7K-Zp-5B5"/>
<segue reference="5xk-44-Lcj"/>
<segue reference="dNd-oi-ntL"/>
</inferredMetricsTieBreakers>
</document>
8 changes: 8 additions & 0 deletions DB/PhotoSelectViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import UIKit

class PhotoSelectViewController: UIViewController {

@IBOutlet weak var scroll: UIScrollView!

@IBOutlet weak var navigation: UINavigationBar!
@IBOutlet weak var backimage: UIImageView!
@IBOutlet weak var pic1: UIImageView!
Expand All @@ -29,10 +31,16 @@ class PhotoSelectViewController: UIViewController {

backimage.image=UIImage(named:"haikei.jpg")


// NSTimer.scheduledTimerWithTimeInterval(0.5,target:self,selector:Selector("pic_show"),
// userInfo: nil, repeats: true);
}

override func viewDidAppear(animated: Bool) {
//UIScrollBar表示時にスクロールバーをフラッシュ表示
scroll.flashScrollIndicators()
}

override func viewWillAppear(animated: Bool) {
self.pic_show()
}
Expand Down
5 changes: 5 additions & 0 deletions DB/cardList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ class cardList: UIViewController, UITableViewDelegate, UITableViewDataSource{
//NSTimer.scheduledTimerWithTimeInterval(0.5,target:self,selector:Selector("reload"), userInfo: nil, repeats: true);
}

override func viewDidAppear(animated: Bool) {
//UIScrollBar表示時にスクロールバーをフラッシュ表示
tableView.flashScrollIndicators()
}

override func viewWillAppear(animated: Bool) {
self.reload()
}
Expand Down
5 changes: 5 additions & 0 deletions DB/cardList2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ class cardList2: UIViewController, UITableViewDelegate, UITableViewDataSource{
self.tableView2.backgroundView = imageView
}

override func viewDidAppear(animated: Bool) {
//UIScrollBar表示時にスクロールバーをフラッシュ表示
tableView2.flashScrollIndicators()
}

override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
Expand Down
5 changes: 5 additions & 0 deletions information.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ class information: UIViewController {

}

override func viewDidAppear(animated: Bool) {
//UIScrollBar表示時にスクロールバーをフラッシュ表示
uitext.flashScrollIndicators()
}

@IBAction func backbutton(sender: AnyObject) {
self.dismissViewControllerAnimated(true, completion: nil)
}
Expand Down
1 change: 0 additions & 1 deletion キーコ紀行.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@
TargetAttributes = {
DC23C0071BD7826B000B2465 = {
CreatedOnToolsVersion = 7.0.1;
DevelopmentTeam = 8NQFAUAAWM;
};
DC23C01B1BD7826C000B2465 = {
CreatedOnToolsVersion = 7.0.1;
Expand Down

0 comments on commit abf1c97

Please sign in to comment.