iphone

How can I scroll programmatically to the bottom in a UIWebView?

I know a similar question has been asked before but it seemed never been answered. I have a UIWebView and add some content by string. I use UIWebView because I add some images to it dynamically and also use other HTML features. This example code is simplified. NSString *myHtmlString = @"SOME LONG TEST STRING 1234567890 123456789 0123456...

nib no longer displays

One of the nib files in my program has stopped displaying when loaded. In desperation, I've tried rebuilding it from the ground up. When I first created the new file, with a xib dressed up with the labels and text fields, but without any code in the .h or .m (other than the starting defaults) that .xib would display. Once I cut and past...

iPhone UIApplicationExitsOnSuspend ineffective

UIApplicationExitsOnSuspend does not force my app to exit. I have cleaned the target, removed the app, rebuilt, and reinstalled many times. I really need my app to exit. ...

[iphone] video plays but no picture - just sound?!

Edit: if you come across this and want to know how I eventually solved it I gave up on that code below eventually and did this: -(void)playMovieAtURL:(NSURL*)theURL{ mediaPlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:theURL]; [self presentMoviePlayerViewControllerAnimated:mediaPlayer]; mediaPlayer.view.ba...

If I use the NSXMLParserDelegate, will my application crash or be rejected if I target OS 3.1?

I am using the iPhone 4.0 SDK for my development and the NSXMLParserDelegate protocol in my code. I am planning to make this work on 3.1 as well by making the deployment target 3.1 and base SDK 4.0. Since NSXMLParserDelegate is only on 4.0 and above will it work on iPhone 3.1? Even if it works will Apple reject the app? ...

How to add my swipe code to UISearchDisplayController's SearchResultsTableView

Hello All, I have implemented the Tweetie like swipe action on a UITableViewController which has custom drawn cells using a UITableViewCell subclass. For this I have used the code provided here: http://thermoglobalnuclearwar.com/opensource/ My UITableViewController has a UISearchDisplayController implemented and the searches are work...

Method Parameter NSUInteger and call using IndexPath.row gives warning to use a type cast

I am surprised that the following calls result in type-cast warning: I have a class MyClass with the following method: - (id) initWithData:(NSUInteger)mNumber; when I call this method using (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { MyClass *lClass = [[MyClass alloc] initWithData:i...

Separating UITableView data into sections from one source

Hi All I have one table in my core data source which holds some articles with NSDate's. I basically want to separate the NSManagedObject into days, so you can scroll through and separate articles by date. What is the best way to approach this? My context is queried out in descending date order, so just need to split that up into days f...

UILabel background color

I am trying to change the UILabel background color with this code - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; m_ShopName.text = m_CurrShop.m_Name; m_ShopAddress.layer.backgroundColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.0].CGColor; } but nothing happend? help!! ...

iphone mkannotationview strange problem - possibly being reused

Hi all. I've just found a strange issue with my sub classed mkannotationview. When I add the first 5 markers, they all work perfectly. In the mkannotationview sub class, I NSLog a message which I see 5 times. However, when I remove ALL the markers and redraw them - using all the same methods, I see the NSLog only once. It's like the m...

Accessing IPhone/IPod-Touch USB port? (with jailbreak)

How can I use the USB-port of a jailbroken IPod? I found this app, it emulates a mass-storage device with an IPod, so it definitely is possible. USBDrive app link. I don't want something that complicated, just sent and receive a few bytes. Unfortunately it needs to be over USB, but i have no idea how they do it. My guess is they either...

Unwanted view resizing on rotation, caused by the UITabBarController

I have a tabBarController with 4 views. I wanted the second view to rotate, so i've added -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation { return YES; } to all my 4 viewControllers. Now every view can rotate, and this is good. The second view is working fine on rotation, it hand...

willAnimateRotationToInterfaceOrientation not called on popViewControllerAnimated

In the MainViewController I have to adjust some images on orientation change. Easy - just add the code to the willAnimateRotationToInterfaceOrientation: callback - (void) willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)orientation duration:(NSTimeInterval)duration { NSLog(@"orientation: %@", name(orientation)); .. ...

install iphone app to device without paying

hi, how can i install my own iphone app to my ipod touch/ iphone without paying? i follow a few documentation but it always fail. does anyone have a tested method? i am using iphone sdk 3.1.3 with xcode 3.1.4. device is using 3.1.3. thks ...

Does any one how to create a carousel animation view on ipad/iphone application?

Hello, I'm trying trying to emulate the carousel view of safari history search where while you searching the history page the page you choose gets bigger and in the middle of the view and other pages get smaller on both sides. It doe not have to be 3D, it can be just a scrollview and the image or page that gets tapped on or selected g...

cellForRowAtIndexPath doesnt get called

hello all, I build UIView with few labels and one UITableview. the problem is that when i load the view the method - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath never get called. the code: -(void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; m_ShopSalesTable ...

Problem using KeychainItemWrapper

I use the following code to retrieve the login credentials from the iPhone keychain: KeychainItemWrapper *wrapper = [[KeychainItemWrapper alloc] initWithIdentifier:@"Test" accessGroup:nil]; NSString *username = [wrapper objectForKey:(id)kSecAttrAccount]; NSString *password = [wrapper objectForKey:(id)kSecValueData]; [wrapper release]; ...

Validate iPhone application in in XCode 3.2.3

I have built my application using "Build and Archive" and the version shows up in XCode Organizer. However; when I click the application and then "Validate Application..." nothing happens. When I check the console, the following entry is logged every time i click "Validate Application..." Has anyone succeeded with this or experienced t...

Send UITouches over a network

I am building an app which allows a user to draw on the screen. I'd like to add network capability so that user A can draw on user B's screen. My current plan is to build a system where I have my own UserOrNetworkTouch object which can be created based on either a real UITouch, or a message which comes over the network, and base all of t...

WCF duplex connection on iPhone?

Hi Guys, Is there way that a WCF duplex connection can be consumed in iPhone? Best regards, ...