So I've been trying to design a clean way of grabbing data for my models in iPhone land. All the data for my application is coming from JSON API's.
So right now when a VC needs some models, it does the JSON call itself (asynch) and when it receives the data, it builds the models. It works, but I'm trying to think of a cleaner method whe...
Was just doing a code review and started to wonder:
I thought if (self = [super init]) checks whether assigning return value of [super init] to variable self was successful or not (value of operation). Thus (self = nil) would actually be TRUE.
I thought if ((self = [super init])) checks what is the value of self after assignment (value...
I'm trying to replicate the clear queue functionality of the iPod application, however I can't create an empty MPMediaItemCollection with which to call setQueueWithItemCollection:
e.g.
[self.musicPlayer setQueueWithItemCollection:[MPMediaItemCollection collectionWithItems:[NSArray array]]];
where musicPlayer is a MPMusicPlayerControl...
Hi,
I am developing an application for iPhone which needs to capture a picture using camera or pick a picture from library and add a caption to it .Is it possible to customize the toolbar with Cancel and Save button showing after picking an image.I need to add uitextfield in this preview view to add a caption.Looking for a siolution
Th...
I have implemented pdf reader application.In which i have drawn image from the pdf.But problem is that generated image is very dark how to solve this issue.
Please help me for this issue.
Thanks in advance
...
thanks to zoul for sharing his openal avaudioplayer alternative!! its exactly what i needed,
heres my problem.. i cant build a distribution build w/o getting
general gcc-4.2 failed with error code 1,
i built my code within the finch demo project and figured it might be
something i did.
so i re-downloaded demo... duplicated release, r...
Hi All,
I have a requirement as below.
In my application, user will select 5 phots from album and will place them on 5 different views. If user wants to see them one by one as a gif, we can show the animation of those images on iPhone using [UIView beginAnimations:nil context:NULL];. But this will run on iPhone only. If user wants to s...
Hi, I'm trying to place a UIImageView in a UITableViewCell.
I create a special view called ProductView. In that view, I have several components, one of them being a UIImageView. I set this ProductView as content view of the UITableViewCell. Everything is drawn properly except the UIImageView. UIImageView gets scaled meaninglessly. It's...
Hi,
I recently submitted an app for app review but I got rejected because of the use of a private API. I'm still a bit new to iPhone developing so I was wondering if someone could help me understand how this part was rejected:
UISearchBar *searchBar = [[[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width,...
I am develping an application in objective c for iphone, I added Getsatisfactoy thing in my code, there if i want to add reply to my application , in their example [[[NSUserDefaults standardUserDefaults] objectForKey:@"SRC_ME_ACCOUNT"] objectForKey:@"id"] ,in this id always nil , anything i have to set for this , what will be id will tak...
I have implemented a PDF reader application in which i want to implement paging. How can I implement this? Please advise me.
...
I have this code in my drawRect method
float aValue = .0167f;
float fValue = 20;
for(int i=1; i<=6; i++)
{
CGContextSelectFont(context, "Arial", fValue, kCGEncodingMacRoman);
CGContextSetCharacterSpacing(context, 0);
CGContextSetTextDrawingMode(context, kCGTextFill);
NSString *...
Can we get credit card number from user or paypal details & use them for premium service of our application ?
is apple accept this application if we directly get this information & use it in our api on server for transaction. Using ssl will be accpted by apple ?
I have check from
1) http://stackoverflow.com/questions/1763306/credit-c...
hi guys,
I'm working on an app where I draw a UIView via code and I fill it with a UIColor. Next thing I want to load a mask.png file (no transparancy, just black and white) and mask the UIView to change its visual appearance.
Any idea how to do this?
...
What is the preferred and/or correct way to release an NSMutableString (or any other class for that matter) instance and assign a new instance to the same variable in Objective-C on the iPhone?
Currently I'm using
[current release];
current = [NSMutableString new];
but I understand that the following works, too.
NSMutableString *new...
hi friends..
I have a plan of creating Dynamic UI in iphone using webservices ..that is the UI will be build according to the xml content from a webservice.
I need to know some of your suggestions regarding this... where will i get resources for building such an app... are there any tutorials available.....?
...
if i'm on the iphone enterprise developer program for companies with >500 employees, do i still need to publish my app on the app store for clients to install the app?
...
Hi,
I am working on an App that is already been made but Memory Management was not considered in the development stages.
So what can I do to keep the App memory usage low as soon as I get a memory warning?
Is there any general tool or some piece of code that I can use to release any unused memory?
...
I am developing an app where I need to show PDF documents. After many hours of googling I was able to build up a view to show the PDF document fetched from a URL.
I know only to display a single page. using CGPDFDocumentGetPage(ref, pageNumber).
What I would like to have.
Pagination function.
Zoom
Scrolling
...
Hi,
I am developing an application to backup the whole address book into amazon s3,but i cant able to find any direct iphone api to get the whole address book into any data structure.
I tried the following code,to write the address book array to a file in document directory
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocume...