Fake DOS prompt on the 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 9 years ago.
I'm making an Easter egg in an iPhone app — making it look like the phone has crashed and is re-booting in DOS.
How do I create a plain text display with new lines appearing after small delays (i.e., making it look like the "computer" is rebooting, printing "BIOS" messages, etc.)?
I'm thinking it might be possible with some kind of text or label widget set to a monospace font? And appending text to it after periodic delays?
And would there be any way of faking a block cursor? That flashes?

Since there is no "plain text" mode on iPhone, you need to draw nearly everything manually. The simplest solution would be to draw everything in your favorite graphics editor, and play a sequence of images as an animation: first, an image with only a prompt, then after a few seconds an image with the prompt and some text, then with some more text, and so on. Playing a beeping sound would add to the general excitement of it.
As far as the blinking cursor goes, you can use CALayer animation for it: make an image of a small white rectangle, place it in CALayer on top of your image with the text, and then animate its "visibility" property between "Yes" and "No" on a short timer, with the "repeat" flag set to "Yes".

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..
:)

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.

Best way to make an APP in mode landscape and portrait [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.
what is the best way to make an APP that works in landscape and portrait?
I have tried to try with autosizing but doesn't work well because i want to use all the width of the screen. Should i use two views? I have done the UIViewController using the Storyboard.
Thanks
A simple way to easily support both orientations is to use UITableViews and the standard UITableViewCell Styles.
Once you need a custom UITableViewCell you will have to configure the auto-layout constraints yourself. They are a great time saver once you get used to them.
Check out the
WWDC 2012 Introduction to Auto-Layout
Could you be a little more specific with your question? I'm not quite sure I understand what you are asking.
If you mean to ask how you can set the app to default to Landscape orientation, then just go to the main project, under "Targets" it should have your app name, and then you can see the options for "Supported Interface Orientations"
Using two views is easy at first but when you need to make adjustments, it becomes extremely difficult. One modification to one view needs to be modified on another view. Using auto-layout is the best way I believe. Yes it's extremely difficult to get a handle of it at first but once you get to used to auto-layout, it becomes such a breeze to make modifications.

Create tableview like Facebook timeline... 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 10 years ago.
I want to create an app like Facebook timeline, so want to know that do anyone know how to create tableview like Facebook timeline, that it loads cell limited number of cell at once and automatically when we move to bottom of timeline?
I want to create lazy loading tableview that automatically load new cells when user goes to the bottom of tableview.
a quick terse answer will be:
Load the first few cells of the timeline when the app loads at first. Then when the user starts scrolling, load those cell numbers, depending on "how much" the user has scrolled (use a Gesture Recognizer to calculate this), so that you can load only those cells.
For example, if one cell's height is 40 points. If the user scrolls such that the screen shows from 200 points (i.e. the 'x' value at the top left corner of the screen), then load from cell number 6 (because the user has scrolled past 5 cells i.e. 200/40 = 5).
Hope this helps!

Moving UIView on screen in 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.
How can I move UIView on screen up and down like UITableView in iphone? Please explain
You need a scroll view. UIScrollView, here is a few tutorials on UIScrollViews:
Xcode 4 Tutorial UIScrollView
UIScrollView Class Reference Apple Documentation
Another Tutorial on UIScrollView
The UIScrollView class provides support for displaying content that is larger than the size of the application’s window. It enables users to scroll within that content by making swiping gestures, and to zoom in and back from portions of the content by making pinching gestures.
Your question is a bit ambiguous. If you are looking for exchanging between view positions...like moving one view above another or , say, moving a view that was at top to the bottom & the bottom one to the top, then you might want to look at
https://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/UIView/UIView.html