iphone

Can you specify "select unique name from ..." with NSPredicate?

I've got some data stored in Core Data that looks something like: | name | identifier | other_stuff | I need to display the names in a UITableView, but I only want to display the names with unique name-identifier pairs. So for: John | 3 | foo Betty | 4 | foo Betty | 4 | bar I only want the query to return John, Betty. Something li...

how to change the background color of the keyboard programmatically in iphone sdk?

i want to change the background color of the keyboard when we are entering text in textfield or textview. the default color is blue...as background.... can i change the color to black???? ...

How do I translate parabolically?

I'm working on an iPhone app with some simple animation. I have a view I want to translate, but not along a line. I want to translate it parabolically. Imagine that I am animating a car moving along a curved road. I know I can set the transform properly to an instance of CGAffineTransform Problem is, I have no idea how to create the ...

How to add the more than one button on the right side of the navigation bar in objective.c.

I have added the one button on right side of the navigation bar with this code, but i want to add the three buttton like this but i am adding with this code, I think button is overlap on one place , i am able to see only one button on right side of navigation bar. UIButton* modalViewButton1 = [UIButton buttonWithType:UIButtonTy...

iPhone:Can 3.1.2 built iPhone app installable on 3.0/3.1 devices?

Hello, I have built an iPhone app with 3.1.2 SDK. Can it be able to deploy on my iPhone 3.0 or 3.1 device using the same provisional profile using Xcode? If i submit that app which built with 3.1.2 SDK, will it be able to install on iPhone 3.0 or 3.1 version users through AppStore? If not, how can advertise that my app can be instal...

How to display barcode in iPhone

Hello, I need to show barcode string(example :1001847983) into barcode image in A UIView.Does the iPhone SDK supports barcode fonts ? I don't need reading the barcode, I just want to show the string in barcode lines. Thanks In advance Raghu ...

How to use another app's settings

What code could I use in an iPhone app to get and set the settings of another app I wrote? (preferably using NSUserDefaults) ...

How to draw line between two points with animation?

I have using belo code for draw line between two points. #define PI 3.14159 CGContextBeginPath(ctx); int x; for(int y=rect.origin.y; y < rect.size.height; y++) { x = ((rect.size.width/4) * sin(((y*4) % 360) * PI/180)) + rect.size.width/2; if(y == 0) { CGContextMoveToPoint(ctx, x, y); } else { C...

What are some of the less-known and interesting public APIs and frameworks that I can use for iPhone?

What are some of the less-known and interesting public APIs and frameworks that I can use for iPhone? In OS 3.0 they're supposed to be 1000 new APIs more than in 2.2, so which one of these are the most interesting and not so well-known? ...

How to implement search bar in i-phone application?

I am new in i-phone application development. and I want to implement a search bar in my application. Please give me some suggestions. ...

iphone: send back string value with navigationcontroller pop

Hi.. This may be very basic, but I just can`t figure out what to do, so thanks for any response... I`m using a navigationcontroller and are currently on the second level in the stack. Here i set a string value and use popViewControllerAnimated to go back to first level in the stack. What might be the best solution to use that string...

how to invert transform a UIView?

Hi all, I am using core-plot library to draw a bar-chart on my iPhone application and the problem arises when I try to add a label or some other views to the graph, Actually the view I added is drawn vertically invert like this ........ The code is like UILabel *lbl= [[UILabel alloc] initWithFrame:CGRectMake(250, 90, 70, 25)]; [...

My protocol method is not triggered, and no errors while trying...

Hello, First time working with protocols and it is not working but no errors either... I have defined and implemented a protocoll in a delegate (BlockPopViewController). Then I try to access it from a UIViewController (BoardViewController) whose view has been added to the delegate as a subview. The result is that my request to the pro...

Resize and move a UIView with Core Animation (CAKeyFrameAnimation)

Is this possible? I can change the opacity and position (center) of the layer but whenever I try to change the size or origin, it doesn't work. CAAnimationGroup* anigroup = [CAAnimationGroup new]; CGMutablePathRef thePath = CGPathCreateMutable(); CGPathAddRect(thePath, NULL, CGRectMake(0,0, 320, 480)); CGPathAddRect(the...

Memory leak in iphone

Object 0x3d58870 of class NSCFString autoreleased with no pool in place - just leaking I'm receiving this memory warning for almost all variables used in the following function - (void) backgroundTask { c= [array1 count]; if (c == 0){ UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"ERROR" message:@"Chose an image to upload!!...

Iphone add task to EDT ? somethink like SwingUtilities.invokeLater ?

Hi, is there a way to add something to be executed in EDT/Event Dispatch Thread in Iphone application like the invokeLater method in Java Swing application ? ...

how to animate selected portion of image.

I have implemented game application in which i have select some portion of image.Now i want to animate selected portion of image on shake effect?Is it possible?if possible then how to implement give me some idea about that? ...

How to share an array between two classes?

I want an array that gets data from one class to be avaliable to me in another class with the same data. If we declare an array on the applicationDelegate class. Then declare an object of applicationDelegate in both classes. And assign the array into appDelegate.array from one class, will i be able get the array across the classes? ...

UITableView form

Hi Guys, I am having very annoying issue. I have one form page with 5 custom cells. Each of them has one text field. On the bottom I have one button. In an onclick button function I am gathering values from each of the 5 described text fields. My problem is that if my keyboard is up, I will get the values of not all but just visible tex...

What controls the list of supported languages of an iPhone app in iTunes?

What controls the languages shown as supported in an iPhone app's iTunes page (in the right side, below "Description", under "Languages")? From the iTunes Connect Developer's Guide it appears it's not something you choose during submission. I assume it's something in the bundle. ...