Questions for objective-c


5125

Draw UIImage From CIImage In drawRect:

I'm learning about drawing UIImages and CGImages, using CIFilters etc. To test my knowledge I made a small test app with sliders that programmatically change the color of a potion sprite and displa...
1435

iphone remove next string - leave rest of string after particular occurrence of string

In objective c how to Remove text after a string occurrence.
4458

Playing imdb video inside MPMediaPlayback not working

I fetch the video url from imdb of a trailer, like:
5238

Padding in NSTextView — possible without custom drawing?

In Cocoa, NSTextView has a rather shallow margin between text and border. Is there a way to specify a padding (distance between text and border of view) for a NSTextView without resorting to owner
4155

Is there a way to change sectioned tableview to drilldown tableview?

I have a sectioned tableview with a plist wich is an array filled with dictionaries.
4141

IPhone and Cocos2d Sprites/Layers

I am using cocos2d-iphone to place Sprites onto a Layer to setup a game playfield. At certain points in the game, certain Sprites need to be removed based upon game conditions. What I would like ...
8237

Why won't XCode recognize a typedef from a header that's being properly imported?

This is very very weird and driving me nuts. I used to have a class called Constants. In it was this typedef:
3729

Prevent multiple copies of a file on OS X

I have a file somewhere on the hard drive and I would like to make sure it is only accessed by a particular program and not
9170

uialertview and delegate (delayed in code)

I'm checking if file already exists and if it is, I'm alerting the user if he wants o replace the file. I'm using alert view and a delegate.
5656

How to give shadow effects to label items in cocos2D?

I have moving sprites in my game and have added labels on it (CCLabelTTF). The labels have characters like A, B, C etc. I want to give a shadow effect to the contents of labels so that they are pro...
223

Is it available to use UIBackgroundModes and bluetooth-central to send a meesage who is in close area?

I want to create an Application that will send a message or pop up an alert when an people is using a same Iphone Application. And the requirement is , it also need to pop up an alert even it is in
5712

How to add activity indicator to navbar?

Hey, I want to display an activity indicator on the right corner of my navbar when my user changes selection in picker wheel. I have no idea how to add activity indicator there I am only able to add
4269

how to remove all references for outlet

I accidently set event for command button as "outlet" than "action". Due to auto-drag feature, xcode generated references in applicationDelegate and .h and .m files. I removed the entry from .h and...
1349

How to integrate iMessage onto address book?

I have to send a text from my app to the contacts present in the contact list. I can do that using AddressBook and its delegates. How can i roll everything into iMessage?
1700

How to deal with URL with spaces in it?

NSString * urlCached = URL.CacheImageURL;
7785

Table view data source array deallocated after handling asynchronous loading of data

I'm pretty new to Objective-C and am having a problem updating my UITableView after an asynchronous call.
2978

popover display on tableview cell

i am using a TableView in my application where i want a Pop over View when i clicked on a tabel cell, all the content which is in table Cell should display in a pop over view so plz suggest me ho...
5504

Objective C - Unit testing core functionality in private methods?

I've been in many situations where my core logic is in private methods.
6571

NSThread issue with an iPhone Application

I have a rather complex application at https://github.com/BigBadOwl/iStreamer-Download-Manager which uses Rtmpdump and Ffmpeg libraries to download and convert Flash streams. I would like the thread
3805

How to detect presence of a file on web server

What would be the correct way in iOS of detecting the presence of a file (HTML) on a web server. Using the following to detect the presence of myfile.html always returns true.
5369

objective c creating app ui from xml

I am trying to parse xml (attached) and create a ui from it dynamically - with no success.
7986

copyWithZone being called

So i have 2 Objects.
5298

Help needed for s7graphview

If anyone have used s7graphview for plotting the graph then I want to know where to do changes in the code for maintaining the incremental value of the values that is been plot on the x-axis. Curre...
8864

Underline / Bold in UITextView

Is it possible to underline or embolden certain bits of text in a UITextView?
1852

How to get a padding inside TableView?

I have a TableView with a dark transparent
6481

How to Terminate loop/thread

Here is part of my program. Loop in findDuplicates starts in background thread after button was pressed. Is there any way to stop/kill thread/loop by pressing another button?
959

Explanation of constants

I have been looking about constants and I don't really understand whats different about them other than they cant be changed programmatically.
8623

populate uipickerview from sqlite

I have a uipickerview which i want to populate with data from my sqlite database.
9061

Adwhirl ad not receive issue

In my application , i have integrate Adwhirl . i have registered in 3 more networks like iAd, Admob and Google AdSense. its working fine. but in some case
4329

Can I load a localizable.strings file into an iOS app over-the-air

Lets say my app only runs in English. But I do not want to release a new version for every time I add a new language. My proposal is to load this localizable.strings file remotely into my app.
7244

Generic “help” view which is accessible from all views in uinavigationView

Assuming an application has many views pushed to a uinavigationViewController, each view is different in content.
3308

how to change elements on UIpickerView pushing a button or pushing another button

I have an application, that in the main view, have 3 buttons, and the 2 firts buttons have to show an UIPickerView for a selection of event (one of them) and a selection of time (the second).
5287

should I always use self.classvariable?

When coding my iPhone app. Is it always a good practice when setting or getting values to use self? I seem to forget half of the time and recently have been tracking down a bug I believe is related...
250

UITableViewRowAnimation as a block (instead of a row) animation

Is there anyway to make a UITableViewRowAnimation animate at the same time?
495

use % operator in xcode

i'm trying to make a function that use % operator in objective c
9672

How to show an alert when the server is not working properly?

I am getting list using url by doing parsing it using xml parser. sometimes the server is not working properly. then how to give an alert when server is not working properly. I have given the code ...
7275

Why does my CGContext-drawn circle suck?

I have a custom table view cell that is intended to draw a circle like the iPhone’s Mail.app does:
870

global variable in objective C

I'm new in Objective C and stuck on this problem already 5 days)) What i have to do is write implementation for simple task about city and metropolis. I have class City with properties and class
8594

How do I notify the UITableViewController of events from a UITableViewCell subclass?

I have a gesture recognizer on each of the table view cells, and when they swipe one I want my delegate to notify the table view (or if there's a better way without delegates, that) so it can be de...
2197

Image not showing up in UITabBarItem

I am using UITabBar and UITabBarItem. I have an URL of an image. I set UITabBarItem's image to that image using URL. But image is not showing up. If I use any other image from my MacBook, it works....
670

MPVolumeView AirPlay button not showing up

Using MPVolumeView I wanted to create an AirPlay output button for the app's audio.
416

How to detect php web page is running within my iPhone App other than Safari

I have built an iPhone app(not iPad) and I am running a webpage within a Web View controller. My question is how can the PHP file detect that it is being run from within this App's UIWebView contro...
5471

UISplitViewController - Best design pattern for communicating between view controllers

I'm using a UISplitViewController in my app for the first time. The master view controller is a table view controller, and the detail view controller is just a plain view controller.
9893

Location Manager error

I am using location manager
1852

Creating a master-detail app using NSTreeController, NSArrayController and Core Data

I'm coming from iOS and trying to build the simplest master-detail OS X app possible but I'm having a hard time transitioning. More specifically, I can't really fathom how I integrate Core Data wit...
7601

Is it ok to re-sort an array each time you need to access an element at a specific index?

I have a TableViewController that displays a list of elements CoreData relationship. In my cellForRowAtIndexPath:, I am getting a sortedArray from the set and then accessing the element at indexPat...
2990

How to set device (UI) orientation programmatically?

Would like everything on the screen (UI) to be able to rotate from landscape left to right or vica versa.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.