iphone

Problems with NSKeyedArchiver- Simply does not archive at all!

Hello guys... I am probably not seeing something here, that is why I am asking for help :) Here is the deal I have a NSMutable array of items that fulfill the NSCoding protocol, but NSKeyedArchiver always fails to archive it... here is my object implementation: @implementation YTVideo @synthesize URL,thumb,titulo; #pragma mark NSCoding...

selecting some image pixel and making a new image from it

Hi i am trying to make a new image by selecting some part of the existing image. i have accessed the image pixels and also got their values. if i want to change them i can. but i want what is to select the part of the image through the image pixel values and make a new image through it. its just like cropping an image. i want is to se...

Setting up layer properties of a view object

At times i have seen people setting up layer properties for a view object like this: [self.view.layer setBorderWidth:1.0f]; [self.view.layer setBorderColor:[UIColor colorWithRed:.486 green:.486 blue:.486 alpha:1.0f].CGColor]; [self.view.layer setShadowColor:[UIColor whiteColor].CGColor]; Can you please explain the importance of settin...

Difference between Pop and Push a ViewController

I'd like to know if there's any difference between pushing and poping a UIViewController. Thanks, EGB ...

Escape Non-ASCII chars from an NSString for RTF-file

I need to generate rtf-files on iOS-Devices. As RTF only supports ASCII with escaping, I need to find a solution to escape non-latin characters, so that i.e. ü becomes \'fc, ä \'e4 and ë \'eb I have following code inside a Category on NSString self = [NSString stringWithFormat:@"{\\rtf1\\ansi{\\fonttbl\\f0\\fswiss Helvetica;}\\f0\\pard...

very strange plist loading problem

hi, heres the situation: firstly i create a plist in my resource folder. when my app start it will load from doc folder plist, if there is no plist, it will copy the plist from resource folder to doc folder and load from doc folder. ok up to here no problem. ok i load to device and simulator no problem. now here is the strange part. ...

Custom UITableViewCell imageView not updating after setImage

I've got a custom UITableViewCell class whose model object performs an asynchronous download of an image which is to be displayed in the cell. I know I've got the outlets connected properly in IB for WidgetTVC, I know that image data is being properly returned from my server, and I've alloc/init'd the widget.logo UIImage too. Why is th...

How to inspect a vaiable in XCODE?

Is there any command using which we can inspect a object in command line while app is running in DEBUG mode. I do not want to put description message in the code. ...

Adding subview to a subview from another method

Let me start off by describing my situation. I have a main view that I wish to place a smaller scrollview subview in. Then later in code (in another method), I like to add some subviews (images and textviews) to that scrollview subview. And maybe even remove the image- and text-subviews later (in yet another method). So the image- and te...

Xcode: How can I add large sql querys to the xcode editor without double quotes at the start and end of each line?

I asked a question earlier today "Xcode: How do I wrap a long string around to the next line in the xcode editor" ... http://stackoverflow.com/questions/3778589/xcode-how-do-i-wrap-a-long-string-around-to-the-next-line-in-the-xcode-editor ... but this is going to be inconvenient, I`ve got some quite large sql statements, which are nice...

Keep Toolbar at top of UIView when using pushViewController and then popViewController?

Update: Another solution to this problem would be if the Navigation bar at the root level of the navigation controller could be transparent or not shown. Is there a way to make the Navigation bar at the root level of the navigation controller transparent or not shown? I have a NIB with a toolbar at the top of my top level UIView and be...

Iphone 4 graphics

I'd like to design a background image for my app. The image should fill the iPhone screen. What image size that will work for 3G and 4G? A) 320 x 480. B) 640 x 960. I prefer to use B as it will have more quality, will 3G resize the image to fit? Thanks for any help. ...

Is it possible to tell iphone 4 to use @2x graphics in a web page

I'm building an iOS centric web page using HTML5, CSS3 and Javascript with jQuery and jQTouch. I've searched for the possibility of including @2x graphics so iPhone 4 can use it, but haven't found any information about this. Is this possible or not? Anybody know? ...

ipad / iphone application EXC_BAD_ACCESS only in simulator, not on device

Hi guys - I was at client site today and made a couple of bug fixes there and then. I deployed the working copies of the app to their iPads and iPhone. Perfect. I have come home and now run the app in the Simulator.... but it crashes each time and I cannot figure out how. Unfortunately, I cannot see what I have changed which would cause ...

MPMediaItemCollection.representativeItem nil?

Is MPMediaItemCollection.representativeItem ever supposed to be nil? The reference documentation doesn't indicate what a nil value means. ...

Can you establish a button in IB and move it programmatically?

I have a button set up in IB. I have an IBOutlet set up and the onscreen object linked to it. Is there a way to programmatically change that buttons position and/or size? I know you can change the title and some things but I don't see how to change it's position or size. Thank You. ...

how to get my UIWindow using UIApplication?

Hello I have only one window and I tried UIWindow* mWindow = [[UIApplication sharedApplication] keyWindow]; but this returned nil. I also tried: UIWindow* mWindow = (UIWindow*)[[UIApplication sharedApplication].windows objectAtIndex:0]; But this raised an exception and the app closed, when I tried to print out [[UIApplication sh...

Accessing a UITextField from an array in Objective-C

I have 4 UITextFields that I'm dynamically creating, in the viewDidLoad, which works good. I want to reference those objects when the UISlider value changes. Right now I'm storing those objects in a NSMutableArray and accessing them like so from the sliderChanged method: NSInteger labelIndex = [newText intValue]; labelIndex--; NS...

Allow Progressive Download from a servlet?

Hi, I'm having an issue with a servlet that delivers multimedia data. I'm trying to use it from mobile safari on the iPhone and I get the "server not configured correctly" error. I server the same multi-media file using a web share on my Mac (Apache) and it works fine. I start looking at HTTP heades to see if the servlet is messing up a...

NSFetchedResultscontroller Callbacks not received in NSObject Class

Hi all, I have a class, @interface OnlineDataModel : TTModel < NSFetchedResultsControllerDelegate > { ... Where TTModel is, @interface TTModel : NSObject < TTModel > { ... OnlineDataModel class is Singleton, so its object never expires. I am performing the Fetch operation within this class and setting the delegate of the ...