Hi, i need to create a string with a colored circle before it.I know that we can attach an image with an attributed string.So i thought to create an attributed string with a label.Is it possible?
Post
Replies
Boosts
Views
Activity
Hi, I dont want to attach an image in attributed string.As the color code of the circle comes from api,i need to attach a label and i need to set the backgorund color of the label with the color comes from api.How to acheive this?
Hi,Sample String : " Starting String ➖ end String " ( hypen not required in the circle).i will get the color of the circle from api.According to the color received from api, i need to change the color of the circle.
Hi Claude31, Thank you very much for your support and the solution works for me.
Hi,That is not the exact text..There is line feed at the end of attributed String.i got solution by removing it.Thanks a lot Claude31
Hi,
Thanks for your reply.
Yes. i have difficulty in adding new swift file in my project.
Once i add a new swift view controller in my objective C Project, it asked me to add bridging file.
I added it.
And then , I imported "MyProjectName-Swift.h" in my ObjectiveC File.
When i build the project, it fails and shows errors
" '#pragma clang attribute pop' with no matching '#pragma clang attribute push' "
" Expected 'language' , 'definedin' or generatedDeclaration " in "MyProjectName-Swift.h"
Pls help to solve this issue
I put #import "MyProjectName-Swift.h" in .m file.
Added at line No 3 as shown below
line no 1 : #import "abcd.h"
line no 2 : @import ***;
line no 3 : #import "MyProjectName-Swift.h"
Now i replaced it in first line and the errors disappeared.
Working fine...It saved my day.
Thanks a lot OOPer
Hi
Thanks for your reply.
Don't want to detect from image...
if an object like toy is placed on the display of an iPhone, our app need to the detect the object(toy) and we need do further action depending upon the toy detected...
Thanks
Hi
my project outline is,
I will be given one or more toys.
I need to include few music files in my project.
I need to place a toy on the display of an iPhone.
Based upon the toy placed I need to run a music file..
if I place toy1 , need to play music file1.
if I place toy2 , need to play music file2 etc....
Is this kind of app possible in iPhone?
what are the things need to be considered?