先來看看效果吧
是不是感覺挺炫酷的!
這個介面效果主要是用view層動畫組合而成
@inte***ce
viewcontroller ()
@property (weak, nonatomic) iboutlet
uiimageview *cicleimage;
@property (weak, nonatomic) iboutlet uitextfield *usernametext;
@property (weak, nonatomic) iboutlet uitextfield *passwordtext;
@property (weak, nonatomic) iboutlet
uiimageview *bubble1;
@property (weak, nonatomic) iboutlet
uiimageview *bubble2;
@property (weak, nonatomic) iboutlet
uiimageview *bubble3;
@property (weak, nonatomic) iboutlet
uiimageview *bubble4;
@property (weak, nonatomic) iboutlet
uiimageview *bubble5;
@property (weak, nonatomic) iboutlet
uiimageview *bubble6;
@property (weak, nonatomic) iboutlet
uibutton *login;
@property (weak, nonatomic) iboutlet
uiview *wrongview;
@property (nonatomic, strong) uiactivityindicatorview *spinner;
@end
@implementation
viewcontroller
- (void)viewdidload
[uiview animatewithduration:0.3 delay:0.3 options:0 animations:^ completion:nil];
[uiview animatewithduration:0.3 delay:0.3 options:0 animations:^ completion:nil];
[uiview animatewithduration:4 delay:1 usingspringwithdamping:0.1 initialspringvelocity:2 options:3 animations:^ completion:nil];
[uiview animatewithduration:0.4 delay:0.6 options:0 animations:^ completion:nil];
[uiview animatewithduration:0.4 delay:0.6 options:0 animations:^ completion:nil];
[uiview animatewithduration:0.4 delay:0.8 options:0 animations:^ completion:nil];
}- (ibaction)loginbtnclick:(id)sender completion:nil];
[uiview animatewithduration:0.3 animations:^completion:^(bool finished) completion:^(bool finished) completion:^(bool finished) completion:nil];
}];}];
}];}
僅僅是做了乙個效果,其他登入邏輯處理大家再按照需求去完善吧,工程我已經放到了這裡 IOS入門學習筆記(簡單的登入介面)
晚上學習ios,剛開始接觸,太多不清楚的地方,連xcode都用不好,今天自己寫了乙個非常簡單的登入頁面 看上去就很簡單的吧 之所以這個介面呢,是為了鞏固之前學習的知識,後面也會寫很多類似的介面 這裡用到的一些簡單的知識點 uitextfield 這裡用到清除按鈕 pass clearbuttonmo...
OpenGL實現會動的圓
include 引入標頭檔案。include include int time 0 int count 0 const int n 20 glfloat r 0.1f const glfloat pi 3.1415926536f glfloat v 20 初始化頂點陣列 void initverte...
Python遊戲 會動的蜘蛛
如何巧妙的利用pygame做出有趣的遊戲?這當中,一些好看的不可缺少的,然後再在程式中對這些內容進行操作 這一次,帶來乙個簡單的遊戲,會動的蜘蛛,幫助大家進一步了解pygame模組的一些基本操作 import pygame import sys pygame.init 介面的初始化 size wid...