How to draw line out of drawrect function on iphone [closed] - iphone

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
need to draw line touchBegan, touchMove function instead of drawRect function on class derivated from UIView Subclass

Apple's documentation does an excellent job of introducing all the concepts and details you'll need. Please read first, and ask specific questions if you have trouble understanding something.

Subclass a UIView. Implement a drawRect in that custom subclass. Call setNeedsDisplay on a visible instance of that class. Use CG or Core Graphics commands to stroke a path. See Apple's Core Graphics reference documents on developer.apple.com.

Related

How to remove the background of image in iphone app? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
In the app that I am creating, I need to remove the background of the image except for the people or person in the image. I have searched many links, but i didn't find any relevant information .
For eg : Girl should be visible excluding the nature background.
Can anyone please provide me some information regarding this as whether is it possible ?
Thanks in advance
Note:1. If you have Another UIImageView with backgroundImage then use bellow logic
When you want to Cropped Image at that time just hide that backgroundImage with this bellow code..
[yourBackgroundImage setHidden:YES];
write this code before you write code of Cropped image with bezierPath, After if you want to display that backGroundImage Again then Display it with bellow code..
[yourBackgroundImage setHidden:NO];
2. If you want to Remove inbuilt BackgroundImage then use OpenCV..
see some example here may be you get something which is helpful to you... This Link
i hope this answer helpful to you..
:)

conceptually how to write on an image in ios [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am just starting conceptually for a meme-generator (writing texts on images)
conceptually like this
But more for an iPhone. what could be the way to achieve this and Draw some text on image
and return an image with text.
I need a 1000 foot view of how it will be done. conceptually?
Conceptually:
create a UIView
add UIImageView(s) to UIView
add UITextView(s) to UIView
create ImageRepresentaion Image from UIView
Related: Save UIView's representation to file

how banner view works? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
hello guys im just starting out at developing a ios application and came across iAd, admob and such networks . i was wondering how do they open a banner(i think thats a view) above the core applications.if you could point me in a right direction it would be of much help
Thanks in advance!
You are right it is a view subclass. It can be declared in your xib file or created programmatically. Apple even has a view specifically for iAd. You can "show" or "hide" the view based on if you have an ad to fill it. You can also do all sorts of animations to slide it in. There are several good tutorials out their that explain how to implement it. Ray Wenderlich is always a good source...
http://www.raywenderlich.com/1371/how-to-integrate-iad-into-your-iphone-app
You can even create a view that shows AdMob ads in place of the iAd view if it's not filled.

How to add brightness UISlider on UIImagePickerController camera? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Is there any way by which I can add a UISlider to control the brightness on UIImagePickerController camera?
The only way to do something like this is to not use UIImagePickerController and to create your own camera view. You take the feed from the camera and render it to the view directly. You can then edit the feed by changing the brightness etc...
There are a few really good videos from WWDC 2012 (I think session 510 and 511) that will explain how to do all of this well. It's actually fairly straight forward.
You can then add a button which acts as the camera button and saves the image.

Save 96 images in temp file Iphone [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i actually need to save 96 images in the temp file Iphone.
Indeed i have a slider with 96 values and for each value
i have differents images, if i want to do that, this is to have
a movie with the 96 images who scroll when i move the slider .
Thanks for your help and sorry for my english.
You'd probably be best of storing them in NSArray.
The reason for this would be easier animation (later on, if needed) since the UIImage also holds a property named images of NSArray type.
There are many examples of how to read/write arrays to file. For example: http://mobiledevelopertips.com/data-file-management/read-and-write-array-dictionary-and-other-collections-to-files.html
Edit: if all your images are known at compile time then you should simply name them frame_0.png to frame_95.png. Load them into NSArray at application launch and use the images simply as:
(UIImage *)[array objectAtIndex: x]