objective-c

problem with imageview when adding as a subview to the MyCustomButton.

Hi guys, My problem is I have a Custom button and ImageView to which I added the Image.I made this imageView to the custom button as a subview.when Im running it in simulator it workin fine,but when Im runnig it in Device it was not displaying the image in the button. I written the code as: In cellForRowtIndexPath - (UITableViewCell ...

UIView duplicate

Hi! I need to duplicate a view, with all it's subviews. Does anyone knows how to do it? Thanks in advance! ...

any example of ofVideoPlayer on iPhone?

Hello community! Anyone knows any example of ofVideoPlayer working on iPhone?? Thanks!!! ...

how to convert the nsstring value of text into CLLocationCoordinate2D in objective-c for google map

i want to give option to user to put the location name what he want to search in google map from iphone. when user put the location name that particular map should come. for now i am doing this by fixing the value of the of coordiante in its object latitude and longitude. CLLocationCoordinate2D location=mapView.userLocation.coordinate;...

Trying to fade in a UIView without success

Hi there. I am trying to fade in a UIView as a subview of my main view. The UIView I am trying to fade in has the dimensions of 320x55. I setup the view and a timer; secondView.frame = CGRectMake(0, 361, 320, 55); secondView.alpha = 0.0; [self.view addSubview:secondView]; [NSTimer scheduledTimerWithTimeInterval:.5 target:self selector...

CoreData (for iphone) storing images

i wonder if its a wise choice to store images with core data into binary property say i have a collection of movies and i want to save the image dvd cover into a property the avg size of a cover is 20/30kb (320x480px) the reason i want to do this is for storage management, once i delete the movie i know the image is also deleted i'm j...

Observing NSUserDefaultsController not working when bound properties are set

Here's the setup: I have a subclass of IKImageBrowserView whose zoomValue property is bound to a key VFBrowserZoomValue in the shared NSUserDefaultsController. I have an NSSlider whose value binding is bound to the same key. This works perfectly to change the zoomValue of the browser from the slider. I'm trying to implement -magnifyWi...

Universal binary build using 10.4sdk is not workin in 10.3.9?

Hi, I have build an universal binary with xcode 2.4 using sdk10.4 on Mac 10.4.4, when im trying to invoke the application in 10.3.9 PPC machine,the application is not getting invoked, saying it is not able to find the libcurl.3.dylib. Since 10.3.9 has only libcurl.2.dylib the application is not getting invoked? But according to Univer...

How to get system language in ISO 639-2 format of MAC OS using cocoa?

I want to retrieve the system language of a Macintosh in ISO-639-2 format (that is, in three character format). Currently, I'm trying to use [NSUserdefault objectforkey:@"Applelanguages"]. This returns the Language code in 2 character format. Whatever API I end up using, it should support MacOS X versions from 10.3.9 forward. ...

Extracting content from the string which has html tag in it in objective-c

I am new to iphone development.I am having a string which has HTML tags in its content.I want to filter the tag and save the content in another string. Ex: NSString *HTMLData = @"<h1>Hello this is a test</h1>"; I want to filter the header tag and set the content to another string like NSString *actualData=@"hello this is a test" or...

Unable to show a UITabBarController from a NIB-file

I've been trying to learn iPhone development by making a sample app, and now I'm stuck trying to get a UITabBarController to be shown. I have an custom view Controller with the NIB -file containing the Tab Bar Controller: In my controller's .h I've defined an IBOutlet for the UITabBarController: IBOutlet UITabBarController *tabContro...

Parse .strings file with Python

I'm trying to write a small Python script to parse the .strings file in my iPhone application project and determine which keys might not be in use. I'm, also doing some string matching to filter out some of the results. This is where my problems start :). If I try something like for file_line in strings_file: if 'search_keyword'...

Table Contents not Visible Until Table Scrolls

I am new to iphone Development. I am parsing XML into a mutable array of strings which displays dynamically in a table. I am not able so see the content in the table but as soon as I scroll down the contents are displayed. Please help me out.Thanks ...

Xcode Tips for Eclipse users?

Hi, I've been slowly working my way through the examples in Beginning iPhone Development and there are a few things that I have not been able to figure out, but I'm sure you guys can help me with it. In Eclipse there is a Source->Generate Getters/Setters, can you do something similar to synthesize properties in Xcode I also cannot see...

Objective C - convert array of objects (with date field) into dictionary of arrays (keyed by day of week)

Hello, I have an NSArray of DiaryEntry objects, where each DiaryEntry has an NSDate date_ field. I want to display all of the DiaryEntrys in a table view, grouped by the day of the week, where each group is sorted by date in ascending order. So, I need to take the NSArray, and convert to an NSDictionary of arrays, where the key is the...

In Objective C where the predefined classes are stored ?

In C if we include #stdio.h we get some functions like printf, scanf. In the same way for Objective C what we should do to include NSLog,NSArray,... and where the definitions of these NSLog, NSArray are stored ? Please clarify my confusion. ...

numberOfRowsInSection did not return mutable array length

hi I am new to iphone development. numberOfRowsInSection method of UITableViewController executed before parsing the XML node so that this method return value as zero, but this method should be return value of number of rows with data. please help me thanks. ...

What is the Maximum Allowed File Size for downloading using NSMutableURLRequest

Hi there, Part of the functionality Ive written for an app is downloading zip files from a server using NSMutableURLRequest. All works until I try to download a file approx greater than 12MB. The iPhone is on wireless lan. I was wondering if there is a limit or max chunk size to implement when downloading larger files? I fails for these ...

How to work with several objects in OpenGL-ES

I am trying to learn how to add several objects and working with those in my 3D-world. I am developing for iPhone. Regarding my question below I couldn't find good information about it while Googling. I have a function that creates all vertices-arrays with data in order to create a sphere. No problem adding it as the only object. The p...

What is your preferred coding style for dealloc in Objective-C?

I know that discussions about coding styles tend to end in disaster and endless flame wars, but that’s not what I want to reach. During the last decade I mainly saw two different coding styles for dealloc methods in Objective-C. The first and most common one was to place dealloc at the bottom of the file. This is also the style Apple use...