objective-c

Keeping same x and y coordination after enlarging the image in objective c

i am using iphone simulatior3.2 .I need the solution for maintaining the same x,y location after enlarging the image in objective c ...

The item you tried to buy is no longer available [Environment: Sandbox]

I am trying to put In App purchase in my application. I had setup a consumable product which was working fine in Sandbox environment. Now i just made a new product which is non-consumable with new price tier, and deleted the old one. Update my code, with the new Product ID. When request is sent, it properly shows the right Product with n...

Is Class an object, or is it a struct?

Is Class an object, or is it a struct? ...

What exactly is an "extension" in objective-c?

It's something different than a category, right? ...

getting the x,y location while using the UIScrollview

i am using iphone simualator3.2. while i am placing the UIScrollview on the Imageview, the x,y coordinations doesn't displayed in the console. Please give me the solution to rectify this problem ...

UIWebView get HTML Source

Hi I am trying to get the HTML source of a UIWebView without re-downloading it again (a.k.a. do another download, such as [NSData dataWithContentsOfURL:(NSURL*)URL] or launching an NSURLRequest. Browsing the UIWebView header and documentation, there seems to be no way of accessing the current loaded NSData of the source. Am I missing som...

why most of the objects we create in iphone are pointers.

why most of the objects we create in iphone are pointers..? like i create NSString *str, NSMutableDictionary *dict.. etc ...

Error while integrating Three20 to an iphone application...

I am tring to integrate Three20 to my project. I followed the same instructions given in this page Three20. But I am getting CANNOT FIND #import "Three20/Three20.h" issue. Header Search path under Project info > Build i have set as ../three20/Build/Products/three20 Please suggest me what can be the problem in my header search path set...

UINavigationController crashes in 4.0 - not <-4.0.

I'm trying to push a UIViewController with UINavigationController. It's working perfectly in any SDK prior to 4.0, but it just won't work in 4.0. I'm getting the OBJC_MSG_SEND (EXC_BAD_ACCESS) error. The UIViewController isn't nil, neither is self.navigationController. I've tried NSZombieEnabled, but nothing shows up. The UINavigation...

Choose build configuration for referenced subproject

I have an iPhone project which references a framework as a subproject. The framework has the following configurations: Debug Release My app has the following configurations: Debug Release Distribution-AdHoc Distribution-AppStore I would like the framework to be built with different configurations, depending on the app configurat...

NSTimer Lag - iPhone SDK

Hello everyone, I made a game that uses many timers throughout the code. However the timer has to deal with many tasks in such a small amount of time which leads to the problem where there is lag in my game. For example, my timer runs at an interval of (0.05) and it needs to draw and update many of the images on the screen. Is there any...

escape % in objective c

Hello All, I want to make an sql statement - sqlStatement = [NSString stringWithFormat:@"SELECT * FROM movies where title like '%%@%'",searchKeyword]; But sqlStatement is becoming - "SELECT * FROM movies where title like '%@'" I want to make it "SELECT * FROM movies where title like '%searchKeyword%'" How can I escape the "%" ...

Completely Removing Views from memory

I have a view which is slideshow settings, and another view which has a slideshow. Unfortunately, these views conflict because they are still in memory. As far as I know, viewDidUnload and dealloc are only called in low-memory situations, and dealloc should not be called directly, so how do I completely remove a view. These views are wi...

Obj-C enum "Incompatible Types in initialization"

Hi folks, I'm having a problem with enum type initialization that appears to be simple to solve but I haven't figured out how to do it. Suppose I declare the following enum type: typedef enum NXSoundType { NXSoundTypeNone, NXSoundTypeEffect, NXSoundTypeBackgroundMusic } NXSoundType; I declare a convenience method for retu...

Accelerometer & Calibration - iPhone SDK

Hello everyone, I need to use the functionality of an accelerometer in my iphone game. I just have to move an image by tilting the device. However most videos on youtube just show the tilt feature that is somehow inverted and forget to include the calibration. I want the user to calibrate their device to whatever position they're in. Do...

Extract part of HTML in C/Objective-C

Hi, I need to extract the detail content of a website while preserve all formatting of the division. The section I wish to extract is: ... <div class="detailContent"><p> <P dir=ltr><STRONG>Hinweis</strong>: Auf ... </p> </div> ... My current solution is to use HTMLParser from libxml2 and xpath to find the nodes and walk through all ...

Pressing UIBarButtonItem on a NavigationController

Hey I've added a button the my navigation bar like so: UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"Edit" style:UIBarButtonItemStylePlain target:self action:@selector(methodtocall:)]; self.navigationItem.rightBarButtonItem = anotherButton; [anotherButton release]; However when I press this I ge...

how to create table view who's 1st cell look like as selected?

I have created one ipad app where 1st screen is split view. In that master view is table view and detail view holds image view controller. My problem is that when initially application gets loaded the 1st cell of table view should seen as selected and corresponding image view should appear at detail view. ...

Problem with a NSString that equals to (null)

Hi, I have an UIViewController named MainViewController I have another UIViewController named LeftSharingViewController; I would like to get and use the NSString from MainViewController in my LeftSharingViewController I have a problem, I always get (null) instead of the NSString wanted value. Here's my code and how does the NSString ...

Extending a view to the left side, animated

Hi, I have a view that I want to extend on the left side using an animation. All borders but the left one should remain the same, so the x position and the width of the view are changing. I use this code: [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:5.0]; self.frame = CGRectMake(self.frame.origin.x-100, ...