平成30年2月28日(水曜日)
mkmapview関連で以下参考
WKWebViewでwebページを表示するiOSアプリを作る
NSAppTransportSecurity NSAllowsArbitraryLoads
平成30年2月28日(水曜日)
mkmapview関連で以下参考
WKWebViewでwebページを表示するiOSアプリを作る
NSAppTransportSecurity NSAllowsArbitraryLoads
平成30年2月28日(水曜日)
九州温泉道に組み込み、動作OK!!なるも、動きが遅く実用には遠いか。
Xcode 9 GM – WKWebView NSCoding support was broken in previous versions
import UIKit
import WebKit
class ViewController: UIViewController, WKUIDelegate {
@IBOutlet weak var webViewContainer: UIView!
var webView: WKWebView!
override func viewDidLoad() {
super.viewDidLoad()
let webConfiguration = WKWebViewConfiguration()
let customFrame = CGRect.init(origin: CGPoint.zero, size: CGSize.init(width: 0.0, height: self.webViewContainer.frame.size.height))
self.webView = WKWebView (frame: customFrame , configuration: webConfiguration)
webView.translatesAutoresizingMaskIntoConstraints = false
self.webViewContainer.addSubview(webView)
webView.topAnchor.constraint(equalTo: webViewContainer.topAnchor).isActive = true
webView.rightAnchor.constraint(equalTo: webViewContainer.rightAnchor).isActive = true
webView.leftAnchor.constraint(equalTo: webViewContainer.leftAnchor).isActive = true
webView.bottomAnchor.constraint(equalTo: webViewContainer.bottomAnchor).isActive = true
webView.heightAnchor.constraint(equalTo: webViewContainer.heightAnchor).isActive = true
webView.uiDelegate = self
let myURL = URL(string: "https://www.apple.com")
let myRequest = URLRequest(url: myURL!)
webView.load(myRequest)
}
平成30年2月28日(水曜日)
urlスキームの部分、設定し直してOK!!
〆重要
以前のp.list
item3:comgooglemaps
item4:comgooglemaps
上では、不可
今回、設定 以下にてOK!!
平成30年2月28日(水曜日)
以下にて、OK!!
① まず追加するVIEWを作成
② 作成したVIEWに、TABBARITEM(★)を追加
③ 既に、作成済みにTABBARCONTOROLLERから、SEGUEを張る。
平成30年2月27〜28日(火曜日)
対策:searchDisplayController’ is deprecated: first deprecated in iOS 8.0
対策完了。
基本は、ui-searchcontroller-objcによる。
概要は以下。
①
.m
@property (nonatomic, strong) UISearchController *searchController;
②
MasterViewController.m Delegate追加 @interface MasterViewController ()
③
viewDidLoadの最後(最初に置くと、error)
[self initializeSearchController];
④
updateSearchResultsForSearchControllerの設定
// フィルタ作業後tableViewをreload
filterContentForSearchText
[((UITableViewController *)self.searchController.searchResultsController).tableView reloadData];
⑤
prepareForSegue
if ( self.searchController.active ) {}による切り替え
⑥
サーチバー設定
[self.searchController.searchBar setSearchBarStyle:UISearchBarStyleMinimal];
⑦
iOS 11.0
//add the UISearchController's search bar to the header of this table
//self.tableView.tableHeaderView = self.searchController.searchBar;
if ([self.navigationItem respondsToSelector:@selector(setSearchController:)]) {
// For iOS 11 and later, we place the search bar in the navigation bar.
if (@available(iOS 11.0, *)) {
self.navigationController.navigationBar.prefersLargeTitles = NO;
} else {
// Fallback on earlier versions
}
if (@available(iOS 11.0, *)) {
self.navigationItem.searchController = self.searchController;
} else {
// Fallback on earlier versions
}
// We want the search bar visible all the time.
if (@available(iOS 11.0, *)) {
// 今回はYES(好みか)
self.navigationItem.hidesSearchBarWhenScrolling = YES;
} else {
// Fallback on earlier versions
}
}
else {
// For iOS 10 and earlier, we place the search bar in the table view's header.
self.tableView.tableHeaderView = self.searchController.searchBar;
}
平成30年2月27日(火曜日)
Google Maps SDK for iOS update関連
pod
グーグルページ↓不可
sudo gem install cocoapods
↓ OK!!
sudo gem install cocoapods -n /usr/local/bin
その前に、↓が必要か
sudo gem update –system
最後に、
pod update
で完了。
High sierraでCocoapodsがインストールできなかったのを解消
gem install bundler fails: no implicit conversion of nil into String
平成30年2月26日(月曜日)
サンプルソースコード
ios-uisearchcontroller-objc
APPLEサンプルソースコード
Objective-C/TableSearch/APLProduct.m
Swift 4
iOS 11で追加されたUINavigationItemのsearchControllerプロパティ
動作未確認
ios-samples/ios8/TableSearch/TableSearch/MainTableViewController.cs
平成30年2月26日(月曜日)
以下にて、解決
Objective-c
.m file
AppDelegate *AppDelegateGlobal; AppDelegateGlobal = (AppDelegate *)[[UIApplication sharedApplication] delegate];
平成30年2月25日(日曜日)
要するに、8.x までは Xcode ではなく iTunes Connect で設定していたストア用のアイコン。