How to change avatarView image same sender(user) different avatarView image if we want? messageKit - swift

I want to make changes to the incomingAvatarView while using the MessageKit library.
This change will not change in previously uploaded avatarView images. Incoming avatar will change according to the answer given.
If I had to explain it with pictures, I can say it this way.
enter image description here

Related

How to save an image which only display properly using imshow(grayImg,[])?

I am working on an image encryption project, so I first converts color image to gray and do the rest, after encryption I can see the image only using
imshow(grayImg,[])
Not by
imshow(grayImg)
but if I store the image with
imwrite(grayImg,outputFileName);
Then it isn't saving as expected or not as I saw when using imshow(grayImg,[])
Does anyone know what kind of error am I making?

I want to display image filename on image during animation

I'm new to iPhone application developing.
I created frame by frame animation which display all images from folder dynamically.
But i want to display image filename as well for particular image when it is display on screen to UILabel.
I had also faced this situation. In xcode to show image you have using image name, that is a reference for the image only, the name will not stored in any where. I think you have all of your image names in array. For showing that names with particular image, just load image in array index order, & set the label.text as image name at particular index. Using this way i had cleared my situation.

adding text to image within image picker

hello i am creating an iOS app using cocoa and xcode
i am very new to the whole thing and have gotten kind of lost.
in part of my application the user must choose a picture from the library or using a camera, then some text is added to it(just like "id cap that").
the question is where would i add the text and how do i save it to the phone?
i know there is a allowsImageEditing property, the question is how to i edit it so that instead of crop and zoom it will add text and have an option of saving.
thank you
The system determines what kind of editing is allowed. You can only tell it whether it's allowed or not, but you cannot choose what type of editing. If you want to add a caption to an image, you'll have to use Core Graphics to do so. Or, if you don't care about the image being saved with the caption on it, you can simply use a UILabel on top of a UIImageView.

gto changing the image as instigram in twitter after posting?

Am posting the image after changing it to instigram color.In the view the color is getting changed.but after posting when I chech it in my twitter it is showing the normal image without any change of color.Can any one guide me.
Thanks
Make sure you're using the image whose data's been modified when you're applying the effects. You might be using UIImageView to hold the image on your view, now let's assume your UIImageView's object's name is imageView, so now you use imageView.image property when passing the image to the function which is posting image on twitter. You might be passing the original UIImage object which doesn't know about the changes you did recently.

how to save an image with text on another image?

I any one have idea about taking snapshot from iphone application through coding.
means.
I am developing an iphone application where there will be two images dynamically comes. There will be a text view with clear color on those particular images. users will be able to write any text on the images and click save button. Then those particular images will have to be saved in database along with text or have to save them in iphone library along with text.
we may need to convert the image along with text as an another image.. ? or do any one have any ideas about this kind of challenging task..
Please help.
Thanks in advance to you all....