« first day (11 days earlier)    last day (14 days later) » 

11:21
@FaheemRajput: Hello
Rob
Rob
11:53
@RajatDeepSingh Let's move your follow up questions here.
(@RajatDeepSingh - BTW, can I ask that you remove all of your comments under stackoverflow.com/a/30415714/1271826 which are not directly related to the OP's original question? I don't mind that you have unrelated follow-up questions, but they don't really belong under comments.)
Anyway, you asked:

> @Rob: I have an image can't we just use [UIImageView imageNamed:@""] code and add it to the path of BeizerPath?
No, you can't just add an image to a UIBezierPath. You can, though, add the drawing of an image to the drawRect in which you currently draw the path.
Or you can replace all of that drawRect code with code that builds a UIImage object, and then just have a viewForAnnotation that creates a MKPinAnnotationView and set its image property accordingly.
@Rob Deleted
comments
I am not able to get that concept of building UIImage object & add it to viewForAnnotation?
Rob
Rob
12:37
Hello.
Rob
Rob
OK, so there are two parts to your question: First, how do you create an image.
You do that by calling UIGraphicsBeginImageContextWithOptions, do a bunch of drawing, and then call UIGraphicsGetImageFromCurrentImageContext to get the resulting UIImage object.
My situation is that on the basis of a flag value I need to distinguish pins
Rob
Rob
(and then call UIGraphicsEndImageContext, too!)
so the pin which is been distinguished is same as before just I have to add a coffee image to it.
Rob
Rob
12:41
OK.
so I wanted to implement the easiest way, because the project is almost ready
& many modification could make it worse
Rob
Rob
So, I'd actually personally suggest that you step away from this "create separate image" approach for a second and just focus on what you'd do within existing drawRect to include the coffee image.
Rob
Rob
Let's say you have a tiny coffee image that you want to include in your custom annotation view.
Rob
Rob
12:43
So, just call drawAtPoint method of the UIImage object inside the drawRect method.
The only trick is figuring out what the CGPoint value should be.
any example for that?
Rob
Rob
You know the center of the circle in the annotation, right?
Rob
Rob
so take that coordinate and subtract 1/2 the image width from both x and y values.
then draw the image at that new point and it should be centered on the annotation.
any example for reference, so that I can refer that & perform my task
Rob
Rob
12:46
And just do that drawAtPoint at the same point where we are/were drawing the white dot (near the end of the drawRect, if I recall correctly.
Yes correct
Rob
Rob
Re examples, I'd suggest googling "drawAtPoint example" or "uiimage drawAtPoint example".
Okh
checked
got some examples
Rob
Rob
It's a pretty simple method. I might suggest trying it out in your code.
BTW, does your coffee image have transparent pixels?
yes
its background is transparent
Rob
Rob
12:48
Excellent. You'll need that for it to look good.
Rob
Rob
Good luck. Happy coding.
Thanks
& thanks for your time.
sdd
sdd
Anyone here got experience in making games with swift language?
Sorry I don't have but I guess might be rob has tried & could help you out. BTW have you posted a question related to your problem?
sdd
sdd
12:53
I don't really have a problem. I am building a brand about iOS gaming.
I need some more people for my team, that's why I asked
sdd
sdd
Rajat, do you have a website? you sound familiar
yes I do have a website
sdd
sdd
Are you a reviewer?
blogger?
I am reviewer
sdd
sdd
12:55
Nice, Ill add you on twitter, whats your name on twitter?
@RajatDeep_Singh
sdd
sdd
Ok, I added you.
sdd
sdd
Check out these 2 games: "Froodie" & "Keepie Uppie!"
both free on the app store
I followed you on twitter
ok will check when I will be free currently working on a task
sdd
sdd
12:58
No problem. I'm out, cya
bye
tk care

« first day (11 days earlier)    last day (14 days later) »