I am displaying different content depending on how the user is holding his/her phone using the onorientationchange call in the body tag. This works great - I hide one div while making the other visible.
The div in portrait mode looks great on first load. I use this to get the right scale/zoom:
<meta name="viewport" content="width=devi...
I have a UITableView and I have set up didSelectRowAtIndexPath, which gets called (I have verified it using NSLog) every time user clicks on a row.
However, I want to reload the same view and change a different data. For example, I am displaying content of a directory on a remote web server, and as soon as user clicks on the row, I want...
Hello Everybody.
I’m coding the Record application. However, I have problem with copying the file from iPhone device to the PC after recording. I used Attach File function on Email but it doesn’t allow with large size > 10MB file. I haven’t found any solution yet for this problem. iTune 9.0 has “Include Voice Memos” function, can i do th...
Is it possible to logout when the iPhone Home button is pressed?
...
I wonder what is the way to gray out portion of a view similar to the way UIAlertView grays out everything except the message box? Right now i use another custom view on top of the target area, but it doesnt look as nice.
Any ideas?
...
hi
i am creating textview(editable) through coding in uitableview in cellforrowatindexpath delegate. textview is showing in every row correctly. the problem is that when i am enter text in textview and scroll the tableview, then text disappear from textview. if anyone has any idea?
...
Hi,
I am working on an iPhone app
I read a key from root.plist like this :
NSString *Key1Var = [[NSUserDefaults standardUserDefaults] stringForKey:@"Key1"];
("Key1" is a PSMultiValueSpecifier for which a default string value has been set already in root.plist)
That works fine, once the user makes settings.
But if the user runs the ap...
Hello! I would like to write a simple image browser. User taps a button, UIImagePicker springs up, user selects photo, large detail gets displayed, user taps a ‘back’ button and is back in the picker. Everything is quite easy except the last part, the returning to the picker. The picker is a modal view, so that I have to dismiss it in or...
I am using a UIWebView(loaded with a HTML file) and i want the offset of the scrolled position and the offset should remain constant if i change the text size.I want to store the previously scrolled position even if i change the text Size . HOw to do this????
...
I have a UIWebView which I want to put under my translucent UINavigationBar. Normally when I put a UIScrollView under a translucent UINavigationBar, I set its contentOffset such that all content will be initially pushed after the bar so that it can be seen; thereafter, the user can scroll text and it will underlap the bar.
The problem i...
Has anyone else come across this problem? I am resizing images pretty often with an NSTimer. After using Instruments it does not show any memory leaks but my objectalloc just continues to climb. It points directly to CGBitmapContextCreateImage.
Anyone know of a solution? or Even possible ideas?
-(UIImage *) resizedImage:(UIImage *)i...
All UIWebViews share a single web thread.
When one of them is init-ed, removed from superview etc., they will attempt to lock the web thread from the main thread in a blocking fashion, thus temporarily freezing the run loop of the main thread.
If the web thread is busy, e.g. while doing a long synchronous XMLHttpRequest, this may block...
I was wondering whether there is a solution to raise an event once after 30 seconds or every 30 seconds in CocoaTouch ObjectiveC.
...
Hi friends,
i am newbie to this forum. I have created my first iPhone application and created a distribution provision for executing in iPhone device.
While Sync my application to iPhone from iTunes, the icon of application is gud. After sometime the icon in iTunes gets changed into an square image. I have followed the following steps...
I added several cells to a tableview and each cell has a textField in the right to let users input texts. I find that when I scroll down and go back, the input of the first few lines will disappear. Does anybody know what's the problem?
The following is a piece of my codes:
-(UITableViewCell *)tableView:(UITableView *)tableView cellFo...
Hi,
In my app i want to drag a image any where in the view and want to resize the image by pinching,gestures.
I am able to drag the image any where by using - (void) touchesBeganNSSet*)touches withEventUIEvent*)event
and - (void) touchesMovedNSSet*)touches withEventUIEvent*)event .
But am not able to resize the image can any please he...
I am using scrollview.There is a image in my scrollview.and my masking image is behind the scroll view.Now i am zooming this image and touch on mask button.But i cant get any output.
i am very near to this but still not getting.
edit:- (UIImage*)imageByScalingAndCroppingForSize:(CGSize)targetSize{
newImage = nil;
CGSize imageSize = ol...
I'm developing a game. I'm using about 150 UIImageView to hold the graphics. I'm simulating a 3D enviroment, so i would like to change the z-order (how close is an object to the camera).
I know there exists :
[superWindow exchangeSubviewAtIndex:i withSubviewAtIndex:j];
But for some reason it's not working, some of the subviews disappe...
I want to show an alertview for user ,When iphone goes to standby mode or power save mode...
Is there any delegate function ,Can we used?
Can anyone help me?
Thanks in advance...........
...
Hi there,
I've managed to add a custom background to my navigation bar by using:
UIImageView *iv = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"UINavigationBar.png"]];
[myViewController.navigationBar insertSubview:iv atIndex:0];
[iv release];
This works fine and I can see the title and buttons okay. However, when I drill ...