iphone

iPhone - Strike out text for firmware 3.0

Hi everyone, I would like to strike out some text of a UITableView on the iphone firmware 3.0. I posted this one: http://stackoverflow.com/questions/2708732/iphone-strike-out-an-nsstring but didn't get an answer for firmware < 3.2. Thanks ...

Downloading file with ASIHTTPRequest - iPhone app

Hi I am using the ASIHTTPRequest source code to download a file from a remote location. Surprisingly, the download happens but nothing happens after that. I have put in a log statement in the handleBytesAvailable method and can see the entire file worth of data is downloaded in parts and added to the fileDownloadOutputStream variable. ...

How to find last day of week in iphone

Hi, In my application I m using following codes to retrieve current date and day :- NSDate *today1 = [NSDate date]; NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; [dateFormat setDateFormat:@"dd/MM/yyyy :EEEE"]; NSString *dateString11 = [dateFormat stringFromDate:today1]; NSLog(@"date: %@", dateString11); //[dateFormat rel...

how can I delete videos stored in documents folder ?

I have stored the videos in the documents folder. the path is /Users/sridhar/Library/Application Support/iPhone Simulator/User/Applications/EC177E77-8665-485C-93DE-62350FA6D0E7/Documents/air.mp4 I want to delete the video . How can I do it programmatically. ...

Why is my app running

I have compiled my iPhone app with setting (Device, Release). I install it on the test machine and it runs with no problem. Here's the problem. The app is linked to a C++ library. The compilation on the simulator has no errors. However the device compilation produces 568 errors, mostly about different visibilities w.r.t AppDelegate.o. ...

iPhone: Interface Builder leaks memory?

I have been working on an iPhone project, where we created all the user interface programmatically in code. Now I'm going to start a new iPhone project and thinking of using Interface Builder instead, because it has been recommended to me as being a very useful tool, creating less headache than writing everything in code and in general m...

Reciving UDP packets on iPhone

I'm trying to establish UDP communication between a MAC OS and an iPod through Wi-Fi, at this point I'm able to send packets from the iPod and I can see those packets have the right MAC and ip addresses (I'm using wireshark to monitor the network) but the MAC receives the packets only when the wireshark is on, otherwise recvfrom() return...

ASIHTTPRequest - HTTPS

Does ASIHTTPRequest support HTTPS connections? My connection right now works for a HTTP connection and errors if I try a HTTPS Connection. (Goes into requestFailed and gives me a ASIHTTPErrorRequestDomain) -(void) getData { av.hidden = NO; [av startAnimating]; NSString *urlString = [IP stringByAppendingString:@"Method1"]; NSURL *url =...

How to add a media attribute to the CSS LINK html tag for the ASP.NET WebResource.axd Http Handler

Hi The ASP.NET WebResource.axd Http Handler is used to serve resources embedded in DLL's. The LINK html tag is automatically generated by ASP.NET. I would like to intercept the generation of the LINK html tag for a certain set of embedded CSS from a third party DLL and add a media attribute. In summary: I would like to add a Media a...

XCode 3.2 does not mark unit test assert failures in the editor

I've been off in Java land for about a month or so and now, upon returning to XCode I feel lost. I've upgraded 1st to 3.1.2 then recently to 3.2 and also got a new Mac with Snow Leopard so I'm not exactly sure when the problem surfaced. I just know that I used to get little red bubbles in my unit test next to the failing asserts and that...

Is there a substitute that can be used instead of the included STL on the iPhone SDK?

I am currently using the STL included with the iPhone SDK. I haven't been able to find a way in the Xcode debugger to look at data that is in a list, map, etc. like I can within Visual Studio. Within Visual Studio, I can walk through the data structure and look at the data within the list, map, etc. Within Xcode, this doesn't seem to ...

Best way to apply a theme to an iPhone app

Hi I am trying to write some iPhone app with a theme switcher, where users can select a theme to change the background color, alpha, images, and some push buttons' look and feel as well (size, image, or even locations). What would be the best way to apply the theme? Thanks, Tim ...

Core Data and many Entity

I'm newbie and I must save "Ranking" and "Level" of user. I create file Ranking.xcdatamodel for save "Ranking" with entity name Ranking (property is Rank, Name) I can save and show it. But when I create entity Level (property is CurrentLevel) my program is crash and show this message: Unresolved error Error Domain=NSCocoaErrorDoma...

View controllers inside tab bar controller not auto-resizing on rotation

(Correction: the view controllers are not auto-resizing instead of not auto-rotating.) In an iPad app, I have five regular view controllers (not navigation controllers or anything like that) inside a tab bar controller. The tab bar controller is just a plain UITabBarController declared in the app delegate. All the view controllers ret...

tableView:didSelectRowAtIndexPath: calls TTNavigator openURLAction:applyAnimated: — UITabBar and navigationItem disappear

I have an existing iphone project with a UITabBar. Now I need styled text and in-text links to other ViewControllers in my app. I am trying to integrate TTStyledTextLabel. I have a FirstViewController:UITabelViewController with this tableView:didSelectRowAtIndexPath: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(N...

How to make a table view which is not the full width of the screen?

For some strange reason, UITableView resizes my cells to 320 width no matter how I set the frame for the UITableView object. Even if I go in later and resize the cell back to 250, UITableView seems to resize it again to 320 some time. Is there some property or method that must be set / called additionally to get that right? However, I...

Is there any way to change TextView font type by adding in settings ?

Is there any way to add an item to settings that changes TextView font type ? (for ex TimesNewRoman to Calibri etc ) ...

UIScrollview setContentOffset immediate animation?

Is there anyway to get the setContentOffset animation to happen immediately instead of waiting until the app returns to the main run loop? I tried setting the animation property to NO and nesting inside of an animation block but it still waits until returning to the main run loop. I've also tried using a sub method to perform the animati...

TTRequestLoader always raises "TTDASSERT failed: _cacheKey == request.cacheKey"

I run the TTCatalog application from the Three20 library and encountered this error when click on the "Photo Thumbnails" of the "Three20 Catalog": TTDASSERT failed: _cacheKey == request.cacheKey I look at the breakpoint and see that it is on line 119 of TTRequestLoader.m of the method addRequest. I know that it failed to do the ass...

Properly declare delegation in Objective C (iPhone)

Ok, This has been explained a few times (I got most of the way there using this post on SO), but I am missing something. I am able to compile cleanly, and able to set the delegate as well as call methods from the delegate, but I'm getting a warning on build: No definition of protocol 'DetailViewControllerDelegate' is found I have a De...