Click here to Skip to main content
15,500,853 members
Home / Discussions / iOS
   

iOS

 
QuestionHow to Create Time Bar in xamarin iOS Pin
DELPIN SUSAI RAJ15-Mar-17 2:35
professionalDELPIN SUSAI RAJ15-Mar-17 2:35 
QuestionTimer (novice) Pin
Member 1296950226-Jan-17 12:12
MemberMember 1296950226-Jan-17 12:12 
AnswerRe: Timer (novice) Pin
Richard MacCutchan26-Jan-17 23:02
mveRichard MacCutchan26-Jan-17 23:02 
Questionhow to use magic wand tool Pin
Uttam Kumar Utterapally24-Jan-17 21:55
MemberUttam Kumar Utterapally24-Jan-17 21:55 
AnswerRe: how to use magic wand tool Pin
Member 1492059722-Aug-20 21:30
MemberMember 1492059722-Aug-20 21:30 
Questionhow to use magic wand tool in ios Pin
Uttam Kumar Utterapally24-Jan-17 21:55
MemberUttam Kumar Utterapally24-Jan-17 21:55 
AnswerRe: how to use magic wand tool in ios Pin
Member 1492059722-Aug-20 21:30
MemberMember 1492059722-Aug-20 21:30 
QuestionHow to focus on a specific location by using google maps. Pin
Asım Gündüz3-Jan-17 23:14
MemberAsım Gündüz3-Jan-17 23: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 2:36
MemberAndreeaLib27-Dec-16 2:36 
QuestionXcode and I phone for debug Pin
Andy_Bell15-Dec-16 0:04
MemberAndy_Bell15-Dec-16 0:04 
QuestionRe: Xcode and I phone for debug Pin
David Crow15-Dec-16 3:26
MemberDavid Crow15-Dec-16 3:26 
Question2 Notification show in my create app ios Pin
Sathiya moorthi24-Oct-16 2:50
MemberSathiya moorthi24-Oct-16 2:50 
AnswerRe: 2 Notification show in my create app ios Pin
Richard MacCutchan24-Oct-16 2:52
mveRichard MacCutchan24-Oct-16 2:52 
AnswerRe: 2 Notification show in my create app ios Pin
First European12-Dec-16 5:40
MemberFirst European12-Dec-16 5:40 
QuestionTarget Ios with Xcode version Pin
Andy_Bell5-Oct-16 10:53
MemberAndy_Bell5-Oct-16 10:53 
QuestionHow to execute itextsharp Pin
Radiance Cosmedic Centre28-Sep-16 1:32
MemberRadiance Cosmedic Centre28-Sep-16 1:32 
AnswerRe: How to execute itextsharp Pin
Richard MacCutchan28-Sep-16 3:37
mveRichard MacCutchan28-Sep-16 3:37 
QuestionForce change in Wifi connection Pin
StampedePress22-Aug-16 6:55
MemberStampedePress22-Aug-16 6:55 
AnswerRe: Force change in Wifi connection Pin
Afzaal Ahmad Zeeshan22-Aug-16 8:04
mveAfzaal Ahmad Zeeshan22-Aug-16 8:04 
GeneralRe: Force change in Wifi connection Pin
StampedePress22-Aug-16 8:42
MemberStampedePress22-Aug-16 8:42 
GeneralRe: Force change in Wifi connection Pin
Afzaal Ahmad Zeeshan22-Aug-16 9:04
mveAfzaal Ahmad Zeeshan22-Aug-16 9:04 
GeneralRe: Force change in Wifi connection Pin
StampedePress22-Aug-16 10:03
MemberStampedePress22-Aug-16 10:03 
GeneralRe: Force change in Wifi connection Pin
Afzaal Ahmad Zeeshan22-Aug-16 10:08
mveAfzaal Ahmad Zeeshan22-Aug-16 10:08 
GeneralRe: Force change in Wifi connection Pin
StampedePress23-Aug-16 4:53
MemberStampedePress23-Aug-16 4:53 
QuestionWhere to find an iOS template for my dictionary app Pin
tobe14244-Aug-16 13:02
Membertobe14244-Aug-16 13: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.