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!
Related
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
So, I have searched enough, got one or two ways but failed to get an exact solution to my problem. I have an image of a body like this:
Now when tapping on different body parts, those bodyparts will be highlighted like below image:
This is a back body portion image for reference.
Now I have small images like:
To highlight the body parts. Can anyone please suggest me a way how I can achieve this. Just guide me with a way that will be enough. Thanks in advance.
It should be fairly easy, let's say the full human body is 400x800, and you got like 5 body parts, then create 5x 400x800 images with each body parts in the exact location, stack each on top of each other, the invisible layer will match and display the whole body normally.
To highlight, simply switch the image in the corresponding imageView. To handle user touch, you should have a tap gesture to figure the location, then change the correct image layer.
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 7 years ago.
Improve this question
I want to dynamically create realistic clouds including their movement and multiplication (density). I found this link which seem to explain more than I can understand. I cannot find a way to replicate the clouds and there is practically no other tutorial online. Does anyone know how can I achieve this result? Thank you in advance!
use scene kit you can make a dynamic particle effect:
https://developer.apple.com/library/prerelease/ios/samplecode/SceneKitVehicle/Introduction/Intro.html
in this example you can find, after the vehicles code, the smoke animation. You can gat all the stuff you need from there, like smoke.scnp, smoke.png.
You need to change some row of code like the smoke color, the light color and the camera position.
But with that i guess you can have one of the best result possible, as real time cloud simulation, in iOS.
(other solution would be using openGL but trust me this is a ton easier)
maybe this guide can also be useful to understand the basis (you just need them to achieve your clouds) :
http://www.raywenderlich.com/83748/beginning-scene-kit-tutorial
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I want to create a text-based iOS Game, resp. interactive ebook. I will create chapters that get gradually unlocked after the player/reader has decided which path to take next. He/She cannot undo this decision. Music and little animations are involved as well.
From what I've learned so far, I think using Storyboards would make sense to stay organized with the different parts, but I am insecure whether to use Apple's own game framework SpriteKit or standard UIKit since little pixel art animations and music will be involved? Would it even make sense to mix them?
What would you use? Thanks a lot in advance!
it depends on but basically it should be totally fine to go with UIKit. The great thing about it is you can integrate parts as you wish and can mix it as well. So in case that you need some more fancy effects you can move over and embeeded an view based on Spritekit but you can handle simple animations and effects easily with CoreGraphics/ CoreAnimation which are also part of UIKit
https://developer.apple.com/library/IOS/referencelibrary/GettingStarted/GS_Graphics_iPhone/index.html
best regards
Schreda
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 8 years ago.
Improve this question
I know about mapxbox/routeme and routeme but I need something basic. I need a basic map with all the countries and the only details it would be the name of the countries and the borders.
Can I do that with mapbox? Is there any easier way to do that?
The app should be offline and preload the maps.
iOS 7 support offline maps.
You just need to add tiles for specific area.
Tile contains overlay of map so we just need to add that overlay on the map.
For tiles you need to calculate area for which you need offline map and then get that area from OpenStreetMaps.
That's it.
Here is detailed Link tutorial for this.
After getting idea from tutorial you can easily understand the map structure and move ahead.
Cheers.
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.