Click here to Skip to main content
15,868,016 members
Home / Discussions / iOS
   

iOS

 
QuestionHow to Create Time Bar in xamarin iOS Pin
DELPIN SUSAI RAJ15-Mar-17 1:35
professionalDELPIN SUSAI RAJ15-Mar-17 1:35 
QuestionTimer (novice) Pin
Member 1296950226-Jan-17 11:12
Member 1296950226-Jan-17 11:12 
AnswerRe: Timer (novice) Pin
Richard MacCutchan26-Jan-17 22:02
mveRichard MacCutchan26-Jan-17 22:02 
Questionhow to use magic wand tool Pin
Uttam Kumar Utterapally24-Jan-17 20:55
Uttam Kumar Utterapally24-Jan-17 20:55 
AnswerRe: how to use magic wand tool Pin
Member 1492059722-Aug-20 20:30
Member 1492059722-Aug-20 20:30 
Questionhow to use magic wand tool in ios Pin
Uttam Kumar Utterapally24-Jan-17 20:55
Uttam Kumar Utterapally24-Jan-17 20:55 
AnswerRe: how to use magic wand tool in ios Pin
Member 1492059722-Aug-20 20:30
Member 1492059722-Aug-20 20:30 
QuestionHow to focus on a specific location by using google maps. Pin
Asım Gündüz3-Jan-17 22:14
Asım Gündüz3-Jan-17 22:14 
Hi,

I want to pass coordinates from FirstVC to my SecondVC.

and inside the SecondVC which holds MyMap
I want the map to show the coordinates I've sent from the FirstVC

to do this Here is what I did.

SecondVC

Swift
override func viewDidLoad() { 
super.viewDidLoad()

    //Mapview Settings.
    self.MyMapView.delegate = self
    self.MyMapView.isMyLocationEnabled = true
    self.MyMapView.settings.myLocationButton = true
}


I have this Function

Swift
func InitGoogleMaps(pMyMapInf:MyMapInf){

    if (pMyMapInf.IsEmpty)
    {
        return
    }

    let camera = GMSCameraPosition.camera(withLatitude: pMyMapInf.MyDestinLongitute, longitude: pMyMapInf.MyDestinLongitute, zoom: 6.0)
    let mapView = GMSMapView.map(withFrame: CGRect.zero, camera: camera)
    MyMapView = mapView
    MyMapView.isMyLocationEnabled  = true
    self.MyMapView.camera = camera

    // Creates a marker in the center of the map.
    let marker = GMSMarker()
    marker.position = CLLocationCoordinate2D(latitude: pMyMapInf.MyDestinLatitude, longitude: pMyMapInf.MyDestinLongitute)
    marker.title = pMyMapInf.MyDestinCity
    marker.snippet = pMyMapInf.MyDestinCountry


    print("Latitude is: \(pMyMapInf.MyDestinLatitude) ")
    print("Longitude is: \(pMyMapInf.MyDestinLongitute) ")
    print("City is: \(pMyMapInf.MyDestinCity) ")
    print("Country is: \(pMyMapInf.MyDestinCountry) ")

    marker.map = mapView

    MyMapView.animate(to: camera)

}



And I have this Observer to trigger the above function.

Swift
var MyMapInfo:MyMapInf = MyMapInf()
{
    didSet{
        InitGoogleMaps(pMyMapInf: MyMapInfo)
    }
}



so what happens is: on my FirstVC
I create a new instance of MyMapInf()

Swift
var loFVcMyMapInf = MyMapInf()
SecondVC.MyMapInfo = loFVcMyMapInf


and I present the SecondVC(or I present the SecondVC then set didset observer , When this happens I see that my function is triggered and I see the values I print on the console, however, there ain't any movements on the map or a marker. it's still
what am I missing here?
QuestionApple Pay - WEB Integration through Braintree - how to create Certificate for the Sandbox / Development Environment? Pin
AndreeaLib27-Dec-16 1:36
AndreeaLib27-Dec-16 1:36 
QuestionXcode and I phone for debug Pin
Andy_Bell14-Dec-16 23:04
Andy_Bell14-Dec-16 23:04 
QuestionRe: Xcode and I phone for debug Pin
David Crow15-Dec-16 2:26
David Crow15-Dec-16 2:26 
Question2 Notification show in my create app ios Pin
Sathiya moorthi24-Oct-16 1:50
Sathiya moorthi24-Oct-16 1:50 
AnswerRe: 2 Notification show in my create app ios Pin
Richard MacCutchan24-Oct-16 1:52
mveRichard MacCutchan24-Oct-16 1:52 
AnswerRe: 2 Notification show in my create app ios Pin
First European12-Dec-16 4:40
First European12-Dec-16 4:40 
QuestionTarget Ios with Xcode version Pin
Andy_Bell5-Oct-16 9:53
Andy_Bell5-Oct-16 9:53 
QuestionHow to execute itextsharp Pin
Radiance Cosmedic Centre28-Sep-16 0:32
Radiance Cosmedic Centre28-Sep-16 0:32 
AnswerRe: How to execute itextsharp Pin
Richard MacCutchan28-Sep-16 2:37
mveRichard MacCutchan28-Sep-16 2:37 
QuestionForce change in Wifi connection Pin
StampedePress22-Aug-16 5:55
StampedePress22-Aug-16 5:55 
AnswerRe: Force change in Wifi connection Pin
Afzaal Ahmad Zeeshan22-Aug-16 7:04
professionalAfzaal Ahmad Zeeshan22-Aug-16 7:04 
GeneralRe: Force change in Wifi connection Pin
StampedePress22-Aug-16 7:42
StampedePress22-Aug-16 7:42 
GeneralRe: Force change in Wifi connection Pin
Afzaal Ahmad Zeeshan22-Aug-16 8:04
professionalAfzaal Ahmad Zeeshan22-Aug-16 8:04 
GeneralRe: Force change in Wifi connection Pin
StampedePress22-Aug-16 9:03
StampedePress22-Aug-16 9:03 
GeneralRe: Force change in Wifi connection Pin
Afzaal Ahmad Zeeshan22-Aug-16 9:08
professionalAfzaal Ahmad Zeeshan22-Aug-16 9:08 
GeneralRe: Force change in Wifi connection Pin
StampedePress23-Aug-16 3:53
StampedePress23-Aug-16 3:53 
QuestionWhere to find an iOS template for my dictionary app Pin
tobe14244-Aug-16 12:02
tobe14244-Aug-16 12:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.