How to Style UITableView Cells to Look Like Message Bubbles? [closed] - ios

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm creating a message app in Swift to grasp the foundations of iOS app building and am trying to style the table view cells to look like this.
I've been following tutorials but I can't seem to piece it together. It's got to be pretty simple. Does anyone have a good tutorial that does this in Swift?

I don't have a tutorial but I can give you some suggestions.
An easy way to handle this is to create a stretchable image and install it as the background image for your cells.
A stretchable image has fixed corners/edges, and the system flood-fills the center with a solid color. You take an image like your speech bubble and pare it down to the smallest possible image (with a 1 point center) and then use the UIImage method resizableImageWithCapInsets: to turn it into a stretchable image.
You'd then install that stretchable image as the background image for your table view cells. If this is a chat app you might want several variants: one with the speaker's arrow pointing left, one with the speaker's arrow pointing right, and perhaps different colors.

Related

In Swift 4, how do you create bright/shiny/glowy views? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Im trying to create a view that glows very intensely and in the dark even, kind of like what this app here has accomplished (https://itunes.apple.com/us/app/mood-colors/id545822095?mt=8). I tried adding a sprite kit particle to the view and started messing with that but it really didn't take me anywhere and I couldn't get the results I wanted. Any help would be greatly appreciated. Also, incase you want to know, I am working with Swift 4 on a regular single view app and I am a bit of a beginner.
Thanks in advance.
This is only images showed with bright colors. If the images have very vibrant colors this could be achieved. It also looks like there are several shapes that the user can set a color to themself. But please bear in mind that phones using OLED (as iPhone X) can burn the image in and destroy the screen if something is shown very statically.
If you like to draw shapes (like a star) there is a solution That can be found here
Happy coding!

Customizable curved Line Chart that can show image at various point [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am getting trouble with showing image on line chart at certain point on chart & also i wanted to implement curved line chart with customizable color, width & type (shown in dotted line in image) & labels at x axis & y axis.
I wanted to know is there any iOS libraries are available which provides this kind of implementation.
I know this is a duplicate question cause there are lot of questions are asked about charts for iOS but all I wanted to know is there is any library available there that can fulfill above requirement & save me lot of time for that implementation.
so far I got following libraries by doing search over google.
JBChartView
BEMSimpleLineGraph
PNchart
all off above provides line chart implementation but not curved line chart also have no provision for showing image on chart at specified point.
I am very new to chart in iOS so any help would be very much appreciated.
Thanks in advance.
Following lines can add image at given points(100,200), which will serve your purpose for drawing image.
I have developed a sample chart Library in which you will get what you need, kindly go through it. Download Library here
UIImage *image = [UIImage imageNamed:#"smiley.png"];
[image drawAtPoint:CGPointMake(100,200)];
I recommend SwiftCharts for this, it's specially designed for this kind of situations. You can add multiple layers on top of each other and generate custom views (UIView subclasses, which can be an image view or anything else) in any of these layers.
In this case you would add a layer with the curve and another layer on top of it with your custom overlays.
To produce the custom overlays you receive the complete state of each chart point, so for example you can decide if you display the image or not, or customize the image according to the chartpoint's data. See this example:
There the warning (called notifications in the example) overlays are shown only when the y value is less than 1.
There's also an example with curved line
You could use the curved line example as basis and copy-paste the notifications layer from notifications example to it and add to the chart's layers. Then customize accordingly.
(Disclosure: I'm the author)

Animated Loading GIF [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
So, my background is in the color #DBDBDB. I need an animated loading image like this one for my site's background. Unfortunately since GIFs don't support partial transparency, I'm left with a white outline in my background. I've tried to take this image and edit it to use the same background color to no avail. Then I tried to make a loading animation of my own but that came out horrible. So I do not know what to do. Can anyone help me? I would like to use this image but instead of a white outline, I would like an outline in the color #DBDBDB or a background #DBDBDB
Or to be told how to do this in CS5.5
You can use the wonderful little service AjaxLoad to generate a loading animation for any combination of colors. Just pick #DBDBDB as the background color and use "Indicator Big" as your style.
Here's your image:

how do i change only the eye color on an image (uiimage)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have an iphone app with a picture of a face in the uiimage. I want to only change the eye color on the face by tapping on a button or tapping on a color wheel. Can you give me some help in what code I would need.
I would suggest taking a look at OpenCV. It works quite well on iOS devices, the main code comes with examples on how to build iOS applications and there is a lot of material on how to do eye detection and from there you should be able to change the colors.
Keep in mind this is not a simple task and you could accomplish with a easier thing. But you could learn a lot and there are tons of good resources around this topics.
If you want to do something faster, you might be able to just detect the touch on the UIView(enable user interaction) and present a color picker, after the color has been presented you could create a simple view on top of the image that has a circle with the color that was selected. It would be crappy, but might be a good idea to do a simple simple prototype.

Graphic effects library for Core Graphics? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've reached a point were I can't keep procrastinating the writing of the graphics part of an iPhone app.
What has kept me from digging into it so far has being that it feels hard to figure out how to realize my idea of having "glowing", "sparkling" effects on some lamps. I used to be good at such things back in the days of the Amiga scene. But today I'm clueless. Now I can see that there are so many iPhone apps with completely stunning graphic effects. So. I'm wondering if someone knows about available libraries for creating those? Open source preferably, but I'm willing to pay some for it if it comes to that.
The easiest approach may be to render all your effects as PNGs with transparency in a drawing/painting program and just position/build/animate them on the iPhone itself. This will work for glows, particles and similar effects.
CGImage is the fastest rendering source for image data and you can either layer them manually in a single view (by positioning and drawing yourself) or draw to separate UILayers and use the layer to animate.
Maybe SDL could be helpful.
EDIT: just for motivation
iPhone SDL Test
iPhone SDL Test 2
iPhone SDL Test 3

Resources