iPad - how to secure content in UItextview? - iphone

I'm developing my app in iPad. I'm designing a login page. In that I need to secure the content in textview (password). Please help me. I know how to do it for textfield, but I need that in UITextview.

This reference will help you.
Just add this to your code
textView.secureTextEntry = YES;

Related

uibarbutton and popoverview on iPhone

I am looking for a great tutorial to implement a popoverview on iPhone all I found so far is talking about the ipad or is crashing
You cannot implement the UIPopover in iPhone.
Please refer UIElementGuidelines
For a nice popover tutorial check this site.
For popover in iPhone use the following Open source controls:
FPPopover
ModalView in iPhone
KGModal
MJPopupviewcontroller
UAmodalpanel
RNBlurmodalview
For more check this site
you cannot implement the standard popoverview in iphone. Have to make a custom view that replicate the popoverview.
Check these :
http://www.50pixels.com/blog/labs/open-library-fppopover-ipad-like-popovers-for-iphone/
This May help you great sample code you can find
https://github.com/takashisite/TSPopover
https://github.com/kyoshikawa/ZPopoverController
https://github.com/ddebin/DDPopoverBackgroundView
https://github.com/werner77/WEPopover

How to Zoom UIWebView in iPhone

I am new to this technology,
I am loading webpage in my webview,
I didn't set scalePageToFit property. without using this property i want to do Zooming In and Out on my webview.
is it Possible ?
Here is my Code snippet,
NSURL *url2=[NSURL URLWithString:str1];
NSURLRequest *req2=[NSURLRequest requestWithURL:url2];
[webView1 loadRequest:req2];
[webView1.scrollView setZoomScale:2.0 animated:TRUE];
[webView1 release];
str1 is my url i tried this but, still i am unable to zoom my web view in simulator.
Any help will be appreciated.
Thanks In Advance !
UIWebView is having scrollView as a property. Use ScrollView's delegate method
– scrollViewDidEndZooming:withView:atScale:
This might help you.
Follow this link : This might give you some clue. how to zoom the scrollview.
You need to set scalePageToFit property to YES.

Handling of iAd in iphone?

I have some following requirements, I don't know can we do this in iPhone or not.
Requirements are like
1.Can i open ad in safari browser after click.
2.Can i open ad in application itself in webView.
3.If i open ad in webview in that if i click particular link that link can open in safari browser.
If anyone knows all this. please help me. I will appreciate. Thank u in advance.
This isn't how iAd works, with iAd you implement the ad banner, and Apple pushes you content to fill it with, which you have VERY limited control over.
To do what you're asking I recommend that you make your own ad, but not an iAd. Doing this you can make whatever you want(within reason) happen when the user clicks it.
Ex.
- (void)callUpAd
{
UIView *myAdSubView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 40)];
//add your ad material here
[self.view addSubview:myAdSubView];
}

TTLauncher View of Three20 not working

I have followed a tutorial to make a simple launcher view like in facebook app. But nothing is displayed on screen when program runs and it shows only a white screen. I dont know why this is happening plz help.
The tutorial i followed is at [I have followed a tutorial to make a simple launcher view like in facebook app. But nothing is displayed on screen when program runs and it shows only a white screen. I dont know why this is happening plz help.
The tutorial i followed is at http://iosguy.com/2010/10/19/tthree20-a-brief-ttlauncherview-tutorial .]1 .
I encountered the same problem. The solution that worked for me was to set the background of my "MainWindow.xib" to "Clear Color" (default is "White Color").
If you have no xib, you can still set the color in your AppDelegate: [self.window setBackgroundColor:[UIColor clearColor]];
if u need only launcher effect , better try this , light weight library
https://github.com/rigoneri/myLauncher
Hope this Helps!
It seems to me that the method:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
is lacking at the end:
[navigator.window makeKeyAndVisible];
If you need more help, please, post your code...

Scrolling UITextView programmatically

I'm implementing some simple text chatting capabilities in my app and I'm having issues with scrolling the UITextView programmatically. I'm using a UITextView created in Interface Builder that appends a new line and some text to the preexisting text. When the new text is added it should scroll to the bottom.
I built a test application to nail down the concept before adding it to my app. The text in the UITextView updates with the text from a UITextField, however no scrolling occurs.
- (IBAction)enteredText {
CGPoint currentPosition = [textWindow contentOffset];
[textWindow setText:[NSString stringWithFormat:#"%#\n%#", textWindow.text, textInput.text]];
[textWindow setContentOffset:currentPosition animated:NO];
[textWindow scrollRangeToVisible:NSMakeRange([textWindow.text length], 0)];
[textInput setText:#""];
[textInput becomeFirstResponder];
}
I remember implementing a very similar feature in another application I developed a while ago andfrom what I remember the code is similar. The only difference is that the earlier application was for iPhone OS 2 but this one is for 3.0. I read in some forums that the 3.0 beta had some issues with scrolling when the UITextView was created in Interface Builder. I checked the current release notes and I didn't see anything indicating that.
Edit: The IB action is called because text is updated in the UITextView. And "Cancellable Content Touches" is checked.
Edit: Confirmed that the same code works on 2.2.1 but not 3.0
I found that after the user has tapped on the UITextView the scrolling begins to work. So after I loaded this particular view I temporarily set the UITextView as FirstResponder, then the UITextField as FirstResponder:
[myChatRoomViewController.chatWindow becomeFirstResponder];
[myChatRoomViewController.input becomeFirstResponder];
The scrolling then happened automatically, albeit it seemed less smoother than what I remembered in iPhone OS 2.
Are you sure the IBAction is getting called? If so, try making sure that “Cancellable Content Touches” is checked in Interface Builder. This should solve the problem you hinted about in your post.