Hi,
I'm trying to use a UIScrollView as a UITextView, except it will have a logo at the top (thus I can not use UITextView directly).
In other words; I will have a UIScrollView with a UIImage and a UITextView in it. The content for the textView is localized and liable to change, so I can not hardcode the height of it. Is there any way ...
I have view controller which does some animation action for a specified time with supplied data and then pops.
Now I want to use this very modal view controller with a collection of data. So each get presented after the earlier ends sequentially.
I can't figure out were to trap the end of the earlier cleanly so the users sees a series...
I have a UITableViewController that has a background image. I am setting the image for the tableview like this:
[self.view setBackgroundColor: [UIColor colorWithPatternImage:
[UIImage imageWithContentsOfFile:
[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:
@"background1.jpg"]]]];
The problem is, each of my custom...
I am just playing with an iPhone test app that orients the view when the simulator is rotated left or right. Everything worked fine when my view had a white background, however when I altered the view background to a darker color I noticed a white edge (1 pixel) around the view as it rotates. Has anyone come across this before or know ho...
Hi,
I have a UITextField.
How can I make sure that the first character is uppercase?
I tried this.
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
NSUInteger newLength = [textField.text length] + [string length] - range.length;
if (newLength == 1) {
str...
Which NSString encoding method will percent escape the ampersand (&) character correctly into %26?
stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding
gets the spaces (%20) and other baddies but ignores ampersands!?!
...
I have a view that contains a UITableView and a UILabel which works perfectly as far as I can tell. I really don't want to manage the UIView and UITableView with the same controller as the UITableViewController handles a lot of housekeeping and according to the documentation:
If the view to be managed is a
composite view in which a...
How to solve this problem, please help:
More detail, please view this image: detail image
...
Is there a way to rotate an UIPickerView?
...
I'm working on a cocoa-touch app using OpenAL, but I'm willing to switch to another framework if I'm forced (I don't really need the 3d stuff).
I've been searching for a way to play a sound backwards but I've only found (very complicated) examples using Audio Unit. Is there anyway to perhaps store a buffer in reverse so I can play it b...
I want to preface this question with the fact I am new to the iphone application development and many times believe I may be over my head. I am trying to find an action that will allow me to double tap anywhere within my full screen UIScrollView to return to my main menu (MainMenuViewController).
I currently have the following code runn...
I'm new to iPhone development and am having problems removing a sub-view from the main window. The problem is that the view still shows up even after calling removeFromSuperview.
The sub-view is created and added to the display tree through this code:
// Instantiate the controller for the authentication view
AuthenticationController...
I'd like to make a rich text type editor using Core Text (ideally for iPad but I'm pretty sure I can't get iPad specific examples due to the NDA)
I have no idea really where to start. I'd like to keep the interaction models without having to rewrite them, so would I be layering stuff on top of a text view? Then how do I keep the overlay...
I've checked the other answers but have not found anything that really describes my situation. So here goes.
I have a window-based app that creates and loads a UIViewController from xib. It has status bar disabled, height of 480 and a UISegmentedControl with y origin of 451. It displays nicely at the bottom of the screen.*
In viewDidLo...
The following function is a method of a class called TitleOverlay - which is a transparent overlay with a textView.
The function shows the overlay by animating its alpha, and in parallel uses the animationWillStart property of the animation to show the keyboard.
On 3G phones, the first time this function is called, there is some lag be...
Hi all!
I have a UIWebView that loads a local HTML file from the resources folder.
Now, this HTML file has Javascript inside it.
My question is, is there a way to pass an XCode variable to the HTML file that gets loaded inside the UIWebView which I can pass to the Javascript function in the HTML.
Thanks a lot for any help or suggestio...
Hi,
I have a weird issue with setContentOffset which I don't seem to be able to solve:
I'm trying to build an "endless" scroll view, so I'd like to reset the content offset at a certain position.
With the code below setContentOffset will be called at x=160px.
If I drag the scroll view my log looks like this:
offset: 158
offset: 159
o...
This might be an overly simple question, but I am a beginner at programming for the iPhone with Xcode. My project uses a lot of picture files for UIImageView animation arrays. I add all of the pictures into my resource file but the resources folder is getting a bit unwieldy. Is there a way to add subfolders in resources that do not ch...
I am trying to manage the activity indicator from my App Delegate, that way any of my views can put the indicator up. So, I am adding it as a subview to 'window' and start/stop as follows:
- (void)didStartActivity
{
if( activityIndicator == nil ) {
activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicat...
hi iam creating an UIActionSheet with 2 buttons . now i want two each buttons do separate work .
how can i declare my 2 buttons on the :
- (void)actionSheet:(UIActionSheet *)menu
didDismissWithButtonIndex:(NSInteger)buttonIndex
i use this code :
if (buttonIndex != [menu cancelButtonIndex]) {
// do somthing...